{ "id": "174864", "key": "TIMOB-27834", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-10T19:38:07.000+0000", "created": "2020-03-27T08:49:25.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "events", "navigationwindow" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-10T19:38:07.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "As per the docs the [open|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.NavigationWindow-event-open] and [close|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.NavigationWindow-event-open] events must be triggered when the NavigationWindow opens and closes respectively.\r\n\r\nThis only works on iOS.\r\n\r\nHere is a sample:\r\n_controller.xml_\r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n_controller.js_\r\n\r\n{code:javascript}\r\n// Arguments passed into this controller can be accessed via the `$.args` object directly or:\r\nvar args = $.args;\r\n\r\nfunction onNavigationWindowOpen() {\r\n Ti.API.info('Opened');\r\n}\r\n\r\nfunction onNavigationWindowClose() {\r\n Ti.API.info('Closed');\r\n}\r\n{code}\r\n\r\nNor _Opened_ neither _Closed_ events were shown inside the console.", "attachment": [], "flagged": false, "summary": "Android: NavigationWindow doesnt trigger open and close events", "creator": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "Andrea.Vitale", "key": "andrea.vitale", "displayName": "Andrea Vitale", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 8.3.0.GA\r\nTitanium SDK 9.0.0.GA\r\nmacOS 10.15.3", "closedSprints": [ { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455028", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/11607\r\n\r\nI've changed the example controller to:\r\n{code}\r\nvar args = $.args;\r\n\r\nfunction onNavigationWindowOpen() {\r\n\tTi.API.info('Opened');\r\n}\r\n\r\nfunction onNavigationWindowClose() {\r\n\tTi.API.info('Closed');\r\n}\r\n\r\nsetTimeout(function() {\r\n\t$.index.close();\r\n}, 4000)\r\n\r\n$.index.open();\r\n{code}\r\n\r\nSo it will actually open and close the NavigationWindow.", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-04-08T19:38:58.000+0000", "updated": "2020-04-08T19:38:58.000+0000" }, { "id": "455536", "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": "2020-05-21T13:56:03.000+0000", "updated": "2020-05-21T13:56:03.000+0000" }, { "id": "455630", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "manually merged to master for 9.1.0 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-06-03T13:36:59.000+0000", "updated": "2020-06-03T13:36:59.000+0000" }, { "id": "456390", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.15.4\r\nSDK: 9.1.0.v20200810095016\r\nAppc CLI: 8.1.0-master.9\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nDevice: Nexus4(v5.1.1) device, Pixel3(v10.0) emulator", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-10T19:38:07.000+0000", "updated": "2020-08-10T19:38:07.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }