问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/35573145/cordova-wkwebview-plugin-with-phonegap-build-version-6-0-0