带有PhoneGap Build 6.0.0版本的Cordova WKWebView插件 [英] Cordova WKWebView Plugin with PhoneGap Build Version 6.0.0
问题描述
Build上提供了有关PhoneGap 6.0.0的博客文章,我的理解是,我们现在可以将Cordova WKWebView引擎与通过PhoneGap Build构建的应用程序一起使用.参见:
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
我已经更新了配置版本,包括以下内容,但仍在使用默认的UIWebView:
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?
推荐答案
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"/>
但是,我还发现我需要关闭Hydration才能使应用通过初始化"屏幕.
However, I also found that I needed to turn off Hydration to get the app past the "initialising" screen.
这篇关于带有PhoneGap Build 6.0.0版本的Cordova WKWebView插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!