Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23969] Android: Exiting an app by pressing back prevents the app from being resumed

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-10-17T16:34:58.000+0000
Affected Version/sRelease 5.5.0
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsqe-6.0.0
ReporterGary Mathews
AssigneeGary Mathews
Created2016-10-01T15:47:37.000+0000
Updated2016-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.

Comments

  1. Christopher Williams 2016-10-03

    [~cng] This seems like a very easy fix and a pretty annoying bug, we may want to back port this to 6.0.0.
  2. Chee Kiat Ng 2016-10-03

    [~gmathews] yes please backport this.
  3. Josh Longton 2016-10-06

    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.*
  4. Michael Gangolf 2016-10-12

    Tested 6.0.0.v20161005072811 and the back button now puts the app only in background and won't close it (exitOnClose:true).
  5. Christopher Williams 2016-10-12

    Sounds like we broke exitOnClose for Ti.Ui.Window?
  6. Gary Mathews 2016-10-13

    master: https://github.com/appcelerator/titanium_mobile/pull/8511
  7. Michael Gangolf 2016-10-19

    just tested it and it's fixed in 6.0.0.v20161019091022 You can close the app again, thanks!
  8. Michael Gangolf 2016-10-23

    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 is true since 3.3.0: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Window-property-exitOnClose
  9. Gary Mathews 2016-11-04

    [~lchoudhary] You are right, that is a separate issue. It has been around for a while. It can be addressed in a new ticket.
  10. Lokesh Choudhary 2016-11-04

    [~gmathews], Ok opened a new ticket for it: TIMOB-24106.
  11. Lokesh Choudhary 2016-11-04

    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

JSON Source