Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7991 WKWebView integration
  3. CB-7539

[WKWebView][iOS 8] Use local webserver option to load local HTML file from www

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-ios
    • Labels:
      None

      Description

      This workaround is because of this bug:
      http://www.openradar.me/radar?id=5839348817723392
      (filed with Apple of course also)

      I'm still hoping that Apple fixes this in iOS 8.1, but we should have this as a contingency plan.

      Create this as an included plugin, so it can be extracted later if need be.

      We need to secure access to the local webserver, probably through a session token in the header, since background apps can have access to the webserver. The session token is passed down to the initially loaded local page specified from the <content> tag in config.xml, and should be used in the cordova.exec call. We would also need to implement local proxy support , see CB-7348

      This all sounds more complex than it needs to be than just loading a file url – wishing Apple would just fix this in iOS 8.1 instead.

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              shazron Shazron Abdullah
            • Votes:
              6 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: