Cordova WKWebView Plugin with PhoneGap Build Version 6.0.0

匿名 (未验证) 提交于 2019-12-03 02:31:01

问题:

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.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!