带有PhoneGap Build 6.0.0版本的Cordova WKWebView插件 [英] Cordova WKWebView Plugin with PhoneGap Build Version 6.0.0

查看:157
本文介绍了带有PhoneGap Build 6.0.0版本的Cordova WKWebView插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆