{ "id": "172015", "key": "TIMOB-26269", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-08-06T18:30:43.000+0000", "created": "2018-08-05T22:25:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "20183", "description": "", "name": "Release 7.4.0", "archived": false, "released": true, "releaseDate": "2018-09-17" }, { "id": "20099", "name": "Release 7.2.0", "archived": false, "released": true, "releaseDate": "2018-06-14" } ], "issuelinks": [], "assignee": null, "updated": "2018-12-12T00:02:42.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": "I am running into a strange situation in which the current window is closed when i call {{close()}} on the parent window. Is there a workaround for this? It works fine on iOS and is a common pattern for login/logout scenarios.", "attachment": [], "flagged": false, "summary": "Android: Closing parent window closes current window as well", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "440513", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm not sure I understand what the issue is.\r\nIs your child window closing the parent window?\r\nAnd is the parent window the root window of the app?\r\n\r\nI ask because, on Android, the default native behavior when closing the root activity window is to exit the app. This is not the native behavior on iOS, but it is on Android. If you don't want it to work this way, then you need to set the root window's \"exitOnClose\" property to {{false}}. This will override that behavior.\r\nhttps://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-exitOnClose\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T18:24:30.000+0000", "updated": "2018-08-06T18:24:30.000+0000" }, { "id": "440514", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think that was indeed the issue! The root-window needed {{exitOnClose: false}} and then it worked. However, I am curious if that brings new glitches now.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-06T18:30:19.000+0000", "updated": "2018-08-06T18:30:19.000+0000" }, { "id": "440520", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is a known issue with \"exitOnClose\" written up here: [TIMOB-26213]\r\n\r\nIn summary, if you close a child window programmatically, the \"exitOnClose\" property is ignored by the root window. But this is not an issue when closing the root window directly.\r\n\r\n_*Edit:* This issue will be solved in Titanium 7.2.1_", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T19:45:52.000+0000", "updated": "2018-08-07T00:41:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }