[ 
https://issues.apache.org/jira/browse/CB-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Grieve resolved CB-2094.
-------------------------------

    Resolution: Fixed
      Assignee: Andrew Grieve  (was: Shazron Abdullah)

I think this fixes it:

https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=ba7edf04ba6403588ba22995c0b9b62d58ceeca8

Please feel free to try out this patch on your local cordova.ios.js version to 
see if it fixes it for you.

I tested by navigating around the mobile spec until it got into the state where 
deviceready wasn't being fired. Before this change it took a couple of minutes 
of navigating around, after the change I couldn't repro the bug.

When stepping through, I did confirm that the XHR was being sent in JS, but 
never received in the bridge code. So my assumption is that the browser was 
trying to be smart and serving a cached result.
                
> 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

Reply via email to