{ "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:
\nSo 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.
Looks to be an Android-specific property.
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.
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
This flag was added for ONE explicit reason. For the cases where\nthe Activity immediately above the splashscreen exits back to the\nsplashscreen activity.
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.
\nFor 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).
\nMy 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.