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

XHR mode does not work with my Application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • cordova-ios
    • iOS 6.0 Phonegap 2.1.0(release) XCode 4.5.1

    Description

      I'm in the process of moving from 1.9 to 2.1. After moving over, I could no longer make plug-in calls once changing domains.

      The app we have, starts with pages served on a the local device, then switches to pages served on a remote webserver server once the user provides connection information.

      With the change to XHR_NO_PAYLOAD, my Javascript can no longer make successful plugin calls after switching from local html/js to remote html/js.

      After I switched cordova-2.1.0.js to be (I'm lazy, but you see the point):
      bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.IFRAME_NAV : jsToNativeModes.IFRAME_NAV,

      My Application started working correctly again.

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            jason_d Jason D
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: