{ "id": "173022", "key": "TIMOB-26838", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-25T13:36:01.000+0000", "created": "2019-02-20T00:10:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-25T13:36:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The openWindow() method of Ti.UI.NavigationWindow does not work when it is called from the open event of the base window.\r\nThe openWindow method gets called successfully after the window layout is complete.\r\n\r\nThe openWindow() method for TI.UI.iOS.NavigationWindow (which is deprecated in 8.0 in favour of Ti.UI.NavigationWindow) also does not work from window open event in 8.0. But it works fine in 7.5.0.GA SDK\r\n\r\nSteps to Reproduce:\r\n1. Create a new mobile project. Add the code as shown below to the app.js\r\n2. Launch the app on iOS device or simulator\r\n3. Change the event from open to postlayout for win1.addEventListener\r\n4. Again build and launch the app\r\n\r\nActual Result:\r\nStep 2:The blue window does not open. It continues to show only red window\r\nStep4: The blue window is shown with navigation bar showing the option to navigate back to the red window\r\n\r\nExpected Result:\r\nOn Step 2: The blue window should be shown with navigation bar showing the option to navigate back to the red window\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:\"red\",\r\n title:\"Red Window\"\r\n});\r\n \r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor:\"blue\",\r\n title:\"Blue Window\"\r\n});\r\n \r\nwin2.addEventListener('open', function(e) {\r\n alert('win2');\r\n});\r\nwin1.addEventListener('open', function(e) {\r\n alert('win1');\r\n nav.openWindow(win2,{animated:true});\r\n});\r\n \r\nvar nav = Titanium.UI.createNavigationWindow({\r\n window: win1\r\n});\r\nnav.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: the openWindow() method of NavigationWindow does not work when called from base window open event", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS 10.14.3\r\nTi SDK: 8.0.0.v20190219113758\r\nAppc CLI: 7.0.10-master.15\r\nNode: 8.12.0\r\nJDK: 9.0.4\r\nStudio: 5.1.2.201812191831\r\nXCode: 10.1", "comment": { "comments": [ { "id": "446220", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssekhri] Given test case is not working on SDK 7.5.0.GA also. Can you once confirm please, if it's working on SDK 7.5.0.GA? Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-21T08:02:27.000+0000", "updated": "2019-02-21T08:02:27.000+0000" }, { "id": "446232", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vijaysingh] Updated the test code a bit.\r\nFor 7.5.0 you would obviously have to change Titanium.UI.createNavigationWindow to Titanium.UI.iOS.createNavigationWindow\r\nAlso observed that it works on 7.5.0.GA when in Tiapp.xml the is set to false. However with \"run-on-main-thread\" set to false it does not work as expected on 8.0", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-21T19:22:27.000+0000", "updated": "2019-02-21T19:22:27.000+0000" }, { "id": "446240", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10723", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-22T02:06:45.000+0000", "updated": "2019-02-22T02:06:45.000+0000" }, { "id": "446359", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-27T14:05:45.000+0000", "updated": "2019-02-27T14:05:45.000+0000" }, { "id": "447956", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK Version {{8.1.0.v20190425050927}}\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10723", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-25T13:35:49.000+0000", "updated": "2019-04-25T13:35:49.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }