Signup for the Ionic Newsletter to get the latest news and updates!

  • Abu Nj

    what about the apk size , will this make app size bigger?

    • Manu Martinez-Almeida

      No, WK is provided by Apple as a shared library. It is not in your app’s bundler.

      • Abu Nj

        so this for iOS only ?

        • ukvemsord

          Yes. On Android you’ll use the built in Chrome webview, starting at Android 5 as far as I can tell.

          • Manu Martinez-Almeida

            Even better: 4.4 and since 5.0 it updates frequently since it is not part of the OS!

  • Seba

    Is this only for IOS???

    • Henrik Merlander

      Yes, only iOS

      • Manu Martinez-Almeida

        but you don’t need it since the webview is already backed by chrome by default in Android

  • http://www.raymondcamdencom/ Raymond Camden

    So to be clear, “Ionic Apps will run on WKWebView…BY DEFAULT.” This means “they can run with it and you don’t have to change anything”, it does NOT mean that a new Ionic app will use it automatically… right?

    • Todd

      No, from what I can tell, the default engine will be WKWebView. So a new Ionic app will use it automatically. If you don’t want to use WKWebView, you’re going to have to remove the WKWebView plugin.

      • http://www.raymondcamdencom/ Raymond Camden

        That’s not what it says though:

        “In order to add WKWebView, we must add the plugin from the Ionic repository.”

        If the implication is that it is for existing apps, they didn’t make that clear (to me).

        • Todd

          Yeah, the wording there definitely sounds like it is *not* included by default. But if you take a look at the ionic base starter project files config.xml (https://github.com/ionic-team/ionic2-app-base/blob/master/config.xml), it has the plugin as part of the config.

          • http://www.raymondcamdencom/ Raymond Camden

            Ok – so word to the Ionic folks – maybe a small tweak on top?

            Thanks Todd!

  • George Kappel

    Unfortunately WKWebview still has issues with setting focus on an input which is a pretty substantial regression from UIWebView behavior for any apps concerned with facilitating data entry

  • Thiago Vieira

    This change impacts Ionic 1.x apps too?

  • sneas

    For those who suffer from CORS issue, have no control over endpoint and don’t want to use @ionic-native/http cause it makes development process in browser impossible I published this plugin https://github.com/sneas/ionic-native-http-connection-backend

  • Anton

    Hi all ! I have latest Ionic, install WKWebView, but have problem with build .. app dose not running ..

    2017-10-06
    10:08:11.447052+0300 MyApp[359:187720] *** Terminating app due to
    uncaught exception ‘NSUnknownKeyException’, reason:
    ‘[ setValue:forUndefinedKey:]:
    this class is not key value coding-compliant for the key _requiresUserActionForMediaPlayback.’

    *** First throw call stack:

  • radzik

    Finally. The UIWebView’s performance is just not acceptable…

  • https://vincent-g.fr Vincent

    To anyone planning on using it as a replacement for UIWebView, please mind this issue: https://issues.apache.org/jira/browse/CB-10657

    “[wkWebView] wkWebView disables JS execution when app is backgrounded”

  • Jane Dawson

    What does this mean to users, who currently use crosswalk in their apps? Does this replace crosswalk?

  • Remi Sture

    Will this plugin work to migrate local storage to WKWebView?

    https://github.com/MaKleSoft/cordova-plugin-migrate-localstorage

  • Martin Bech

    This is great. However the no JS while app is in background, is a pretty big problem for background notifications etc. Will this be fixed?

  • Danny

    Does anyone know how to solve this CORS issue I faced ?
    I’m trying to load an image on the html canvas in my Ionic app from Amazon s3
    let source = new Image();
    source.crossOrigin = “Anonymous”;
    source.src = s3Img (An image from S3);

    then I got this error.
    ————————————————————————————————
    Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
    Failed to load resource: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
    Cross-origin image load denied by Cross-Origin Resource Sharing policy.
    ————————————————————————————————
    I also set my S3 bucket CORS configuration like this.

    *
    GET
    3000
    *

    Does anyone know what I am doing wrong?

    Thanks a lot in advance.

  • Eric

    Don’t you think there’s a potential security issue telling API distributors to whitelist `localhost:8080`? That exposes the service to every developer running their own web server. Of course, API keys should be in place but I know this will never fly at my job, even though if we whitelisted `localhost:8080` and used API keys we wouldn’t even need to setup CORS.

    Wouldn’t it make more sense to proxy WKWebView so it sends requests with source set to `ionic` or something?

    I also share the same concerns others do about this plugin in that it disables JS execution when it goes into the background.