[TIMOB-23969] Android: Exiting an app by pressing back prevents the app from being resumed
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-10-17T16:34:58.000+0000 |
Affected Version/s | Release 5.5.0 |
Fix Version/s | Release 6.0.0 |
Components | Android |
Labels | qe-6.0.0 |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2016-10-01T15:47:37.000+0000 |
Updated | 2016-11-04T21:33:31.000+0000 |
Description
Exiting an app by pressing the back button prevents the app from being resumed in the recent apps menu.
[~cng] This seems like a very easy fix and a pretty annoying bug, we may want to back port this to 6.0.0.
[~gmathews] yes please backport this.
Tested as part of TIMOB-23938 Tested On: {noformat} Nexus 6p (7.0) Nexus 5X 6.0.1 Mac OSX Sierra 10.12 Ti SDK: 6.0.0.v20161006080234 Appc Studio: 4.8.0.201609292239 Appc NPM: 4.2.8-7 App CLI: 6.0.0-56 Node v4.4.7 {noformat} *Closing ticket.*
Tested 6.0.0.v20161005072811 and the back button now puts the app only in background and won't close it (exitOnClose:true).
Sounds like we broke exitOnClose for Ti.Ui.Window?
master: https://github.com/appcelerator/titanium_mobile/pull/8511
just tested it and it's fixed in
6.0.0.v20161019091022
You can close the app again, thanks!Sorry to add a comment again. But I just realized, that the PR changed the default behaviour: https://github.com/garymathews/titanium_mobile/blob/21b0aade7b3ef26c6e7c7e9967c065c5e0308d5c/android/titanium/src/java/org/appcelerator/titanium/TiBaseActivity.java#L865 there you have
false
as a fallback value while the documentation says that it istrue
since 3.3.0: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-exitOnClose[~lchoudhary] You are right, that is a separate issue. It has been around for a while. It can be addressed in a new ticket.
[~gmathews], Ok opened a new ticket for it: TIMOB-24106.
Verified the fix. The app can now be resumed after exiting it using the back button. Closing. Appc Studio : 4.8.0.201611011053 SDK Version : 6.0.0.v20161104064744 Mac OS Version : 10.11.6 Xcode Version : Xcode 8.1 Build version 8B62 Appc CLI AND Appc NPM : {"NPM":"4.2.8-9","CLI":"6.0.0-68"} Ti CLI : 5.0.10 Alloy : 1.9.4 Node : v4.6.0 Nexus 5 running 6.0.1