Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-190 CordovaView/CordovaActivity - Refactoring DroidGap
  3. CB-680

onNativeReady fires before the server is taking new connections

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • cordova-android
    • None

    Description

      This issue is able to be ignored in Android 1.7, but it has come to a head in Android 1.8, since we moved where the Callback Server lives.
      D/CordovaLog( 3395): file:///android_asset/www/cordova-1.7.0.js: Line 3570 : JSCallback Error: Request failed.

      When this occurs, and you have methods that are called onDeviceReady, while the interfaces exist, there's no way to get the callback, which means that it hangs forever and always fails when using the CordovaWebView branch. This indicates that we are calling onNativeReady prematurely when we go from page to page, and that we have to wait for the server to be ready before calling this.

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              bowserj Joey Robert Bowser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: