Laurence C
Laurence C

Reputation: 378

Cordova WKWebView Plugin with PhoneGap Build Version 6.0.0

From the blog post about PhoneGap 6.0.0 being available on Build my understanding is that we can now use the Cordova WKWebView engine with apps build with PhoneGap Build. See:

http://phonegap.com/blog/2016/02/09/phonegap_6_now_on_build/ https://shazronatadobe.wordpress.com/2015/09/09/apache-cordova-ios-4-0-0-and-wkwebview-support/ https://github.com/apache/cordova-plugin-wkwebview-engine

I've updated my config version to include the following but am still getting the default UIWebView:

<preference name="phonegap-version" value="cli-6.0.0" />

<feature name="CDVWKWebViewEngine">
    <param name="ios-package" value="CDVWKWebViewEngine" />
</feature>

<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />

Has anyone been able to get this working that could help?

Upvotes: 4

Views: 2159

Answers (1)

Laurence C
Laurence C

Reputation: 378

Thanks to this post I found part of my solution http://community.phonegap.com/nitobi/topics/does-phonegap-build-support-wkwebview-with-the-new-cli-6-0 - I was missing the following line in my config.xml:

<plugin name="cordova-plugin-wkwebview-engine"/>

However, I also found that I needed to turn off Hydration to get the app past the "initialising" screen.

Upvotes: 3

Related Questions