{ "id": "63668", "key": "TIMOB-3036", "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": "2017-07-10T22:36:46.000+0000", "created": "2011-04-15T03:35:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "exitonclose" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T22:36:46.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": "{html}

Having spent the last two weeks working on my first app, the one\nthing that seems to have caused more than half my troubles is\nexitOnClose. Not sure what can be done about it, but some things\nthat I've noticed:

\n\n

So in summary, please please please make exitOnClose exit the\napp when the window is closed, now matter how unclean the shutdown\nprocess. Having it half-exit, half-break the app in weird ways\ncauses lots of pain when debugging seemingly unrelated\nfunctions.

{html}", "attachment": [], "flagged": false, "summary": "exitOnClose is a world of confusion and mystery", "creator": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129912", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Looks to be an Android-specific property.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:13.000+0000", "updated": "2011-04-15T03:35:13.000+0000" }, { "id": "129913", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This ticket does not follow the guidelines laid out in \nSubmitting Bug Reports. Even so, the \"issue\" is user and app\ndesign-specific rather than a Titanium issue. Propose that it be\nclosed as invalid.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:13.000+0000", "updated": "2011-04-15T03:35:13.000+0000" }, { "id": "129914", "author": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

My apologies for being somewhat rambling in the initial report;\nI'm still pretty sure that \"exitOnClose does not cause the app to\nexit when closed\" is a titanium issue though

{html}", "updateAuthor": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:13.000+0000", "updated": "2011-04-15T03:35:13.000+0000" }, { "id": "129915", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This flag was added for ONE explicit reason. For the cases where\nthe Activity immediately above the splashscreen exits back to the\nsplashscreen activity.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:13.000+0000", "updated": "2011-04-15T03:35:13.000+0000" }, { "id": "129916", "author": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

But it's set to true by default for tabGroups, so if you have a\ngroup that doesn't exit back to the splash screen (ie,\nthere's a log-in screen in between), closing it triggers an\nunexpected undocumented \"exit\", and because it doesn't\nactually exit, the app ends up in a confusing zombie\nstate.

\n

For going back to the splash, it doesn't matter whether the app\nexits or zombifies. For going back to a login screen, zombifying is\nbad, exiting fully is good. Thus, if we want to support both cases,\nexiting fully is better. If we don't want to support the latter\ncase, then it shouldn't be the default (It isn't even documented\nthat it's true by default, so even after reading the manual, the\nbehaviour is still unexpected).

\n

My personal preference would be to make it work in both cases,\nand I don't see any downside to it working in both -- but if you\nreally want it to only work in one case, please at least\ndocument the behaviour so developers know how to avoid it in the\nother.

{html}", "updateAuthor": { "name": "shish", "key": "shish", "displayName": "Shish", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:14.000+0000", "updated": "2011-04-15T03:35:14.000+0000" }, { "id": "423846", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T22:36:46.000+0000", "updated": "2017-07-10T22:36:46.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }