Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15666] Android: Kindle device will always run app.js when brought to foreground

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-11-12T21:10:38.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsAndroid
Labels3.2.1, supportTeam, triage
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2013-11-05T18:38:15.000+0000
Updated2017-03-10T21:18:11.000+0000

Description

Issue description

The methods in app.js are being ran once in the sample application. The issue is that app.js is being run every time the Application is being brought to the foreground on Kindle. This does not happen on non-Kindle Android devices. When running the application on a kindle Fire HD, app.js is ran every time the application is brought to the foreground.

Steps to reproduce

To reproduce the APK application is referenced below. This was not reproducible by using a Simpler Project (Default Titanium app created into Studio IDE). 1) Install & Launch app (via URL provided below) 2) Wait until load 3) Quit via Home button 4) Attempt to open once again - app may or not resume execution as per following test results:

Test results

Once we get to the log in screen, the app will load into it on restart, most of the time. Very rarely, we get an all black screen. If we rotate the device, the screen changes to an _AppC loading screen_ e.g. Screenshot_2013-11-27-09-11-44.png One pic is the loading screen we see before rotating to get to the log in screen. The other is of the AppC load screen he sees after rotating the black screen. I am also including logs of first run of application, closing, and then reopening. According to the logs App.js is still being ran twice (Kindle_reopen.log).

Resources

APK: s496726614.onlinehome.mx/appc/11.25_Mybank.apk TiProject: https://www.dropbox.com/s/j0lloropyp07fm1/MB-Next-Gen-Tablet-TIMOB-15788.zip

Customer remarks

Here is a link to the walkthrough video they talked about: https://dl.dropboxusercontent.com/u/53540948/APP-152567_Walkthrough.mov

Attachments

FileDateSize
AndroidBackgroundTest.zip2013-11-05T18:38:15.000+0000758891
Kind_Logs.txt2013-11-05T18:38:15.000+000012100
Kindle_reopen.log2013-11-27T18:30:33.000+000065478
Screenshot_2013-11-27-09-11-44.png2013-11-27T18:30:33.000+0000125162
Screenshot_2013-11-27-09-12-20.png2013-11-27T18:30:33.000+000043194

Comments

  1. Allen Yeung 2013-11-06

    I just tried this with a first generation Kindle fire version 6.3.2 and I was unable to reproduce this. I put a log statement in the app.js, and it only runs once. Everytime I background the app, and come back, I don't see the log message inside app.js.
  2. Eduardo Gomez 2013-11-12

    [~ayeung], mFoundry have to reopen this report. They are no longer able to work around the issue by installing the application via the browser instead of adb. Updated report details and added further information like test results and links to APK. If I can help any other way, let me know.
  3. Lee Morris 2017-03-10

    Closing ticket as it is not our bug.

JSON Source