You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kevin Hawkins (JIRA)" <ji...@apache.org> on 2013/02/11 22:27:13 UTC

[jira] [Commented] (CB-2094) Cordova 2.3.0 not reliably firing deviceready after reload of local files

    [ https://issues.apache.org/jira/browse/CB-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13576139#comment-13576139 ] 

Kevin Hawkins commented on CB-2094:
-----------------------------------

We're getting ready to release the next version of our SDK, targeting Cordova 2.3 (yeah, we're behind a bit).  I'd like to pull in the XHR caching change, to fix the issue in this bug (which we're seeing too).  My question is, is the random Date parameter addition enough to fix this issue?  There are a number of changes to cordova.ios.js as part of 6087176364c633de83dd9044533dfe8cac88e54e, and I'd like to deviate as little as possible from the "final" 2.3 code in our release.  It's hard to tell if all of the other changes are immediately related to this issue, or are piggybacking in from other issues/tasks.
                
> Cordova 2.3.0 not reliably firing deviceready after reload of local files
> -------------------------------------------------------------------------
>
>                 Key: CB-2094
>                 URL: https://issues.apache.org/jira/browse/CB-2094
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, iOS
>    Affects Versions: 2.3.0
>            Reporter: Bob Moore
>            Assignee: Andrew Grieve
>              Labels: Cordova, deviceready, iOS6
>             Fix For: 2.4.0
>
>         Attachments: index.html, MainViewController.h, MainViewController.m, MainViewController.xib
>
>
> I've added a semi transparent home button to the MainViewController which loads the local index.html file within my Cordova 2.30 project. After I've moved on to a remote page, (may be Cordova enabled, may not) and I return with the home button, sometimes deviceready does not fire. It may fire a few times then stop. Once it stops the only way to fix the issue is to send the app to the background (deviceready will now fire) and return.
> This same technique works fine in Cordova 2.20

--
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