You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Stephen McKamey (JIRA)" <ji...@apache.org> on 2013/04/10 01:22:15 UTC

[jira] [Created] (CB-3008) PhoneGap App on iOS hangs on 2nd load but fine on first

Stephen McKamey created CB-3008:
-----------------------------------

             Summary: PhoneGap App on iOS hangs on 2nd load but fine on first
                 Key: CB-3008
                 URL: https://issues.apache.org/jira/browse/CB-3008
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.6.0
         Environment: iPad 2, iOS 6.1.3
            Reporter: Stephen McKamey
            Assignee: Shazron Abdullah
            Priority: Blocker


Within XCode, I clean and build the app. It has been deleted from the device so not updating but is a fresh build. When run on the device (while tethered) it works as expected. Usually hitting "Stop" within XCode and starting it back up will not reproduce the behavior as the app is still running in the iPad's app tray.

Repro steps:

If I kill off the app via the iOS app switching tray, then it will never load back up without deleting it and pushing a new build. The app never gets along far enough to trigger the `deviceready` event or any console messaging. I am not familiar enough with XCode to produce much more output than the console, so if you have advice of what to try, I'm receptive. I looked at XCode's Profile options but they weren't very informative.

Here is the console output for same app build, same device under both scenarios:

When it works:

	2013-04-09 12:00:22.369 Foo[162:907] Multi-tasking -> Device: YES, App: YES
	2013-04-09 12:00:22.856 Foo[162:907] Resetting plugins due to page load.
	2013-04-09 12:00:23.288 Foo[162:907] Finished load of: file:///var/mobile/Applications/68FE7805-DA2C-47A8-A951-B7A5E9FFEABB/Foo.app/www/index.html
	2013-04-09 12:00:23.341 Foo[162:907] DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release. 
	2013-04-09 12:00:23.380 Foo[162:907] [DEBUG] Cordova loaded.

When it fails:

	2013-04-09 12:31:36.126 Foo[295:907] Multi-tasking -> Device: YES, App: YES
	2013-04-09 12:31:36.608 Foo[295:907] Resetting plugins due to page load.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira