Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2094

Cordova 2.3.0 not reliably firing deviceready after reload of local files

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        1. MainViewController.xib
          9 kB
          Bob Moore
        2. MainViewController.m
          5 kB
          Bob Moore
        3. MainViewController.h
          1 kB
          Bob Moore
        4. index.html
          2 kB
          Bob Moore

        Issue Links

          Activity

            People

              agrieve Andrew Grieve
              remoorejr Bob Moore
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: