Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26946] iOS: Launch screen shows last screen when quickly relaunching the app

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-04-25T12:53:29.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.1.0
ComponentsiOS
LabelsengSchedule
ReporterHans Knöchel
AssigneeJan Vennemann
Created2019-03-28T08:01:54.000+0000
Updated2019-04-25T12:53:29.000+0000

Description

To be reproducible easily on KitchenSink-v2: Launch the app, kill it from multitasking and quickly reopen it. On native apps, the launch screen is shown again. On Titanium, it shows a screenshot of the last screen visible. Most interesting: If you wait a few seconds, it's not showing the last screen and behaves correctly. I suspect this being related to the kroll-cleanup taking longer than expected, but if this could be investigates, we'd greatly appreciate it! *EDIT*: Busted! [This](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m#L1014-L1016) will cause it. I suspect now that kroll-thread is fully removed, it could either be removed completely or be replaced by less harming dispatch-queues *EDIT 2*: Removing it indeed fixed the issue for our test-app. No crashes detected either. *EDIT 3*: The code was added 9 (!) years ago ([here](https://github.com/appcelerator/titanium_mobile/commit/cfa5485bc08af28fd6213b8f74fd681f6b43bfd2#diff-3808dfd4ad9381dd993eae7568b09ac4R341)) and was related to kroll stability. Filing a PR now.

Comments

  1. Hans Knöchel 2019-03-28

    Pull: https://github.com/appcelerator/titanium_mobile/pull/10812
  2. Keerthi Mahalingam 2019-04-22

    FR passed. waiting on Jenkins.
  3. Keerthi Mahalingam 2019-04-22

    PR merged.
  4. Samir Mohammed 2019-04-25

    Closing ticket, fix verified in SDK Version 8.1.0.v20190423134840 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/10812

JSON Source