cordova - 切换到 Cordova iOS 6.1.0 后出现白屏死机
问题描述
我的应用在带有 UIWebView 的 Cordova iOS 5 上运行良好。但是我在 Cordova iOS 6.1.0 上切换到 WKWebView,现在我得到的只是飞溅后的白屏死机。如何开始调试导致此错误的原因?这是我的 config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.test" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Test</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<preference name="scheme" value="app" />
<preference name="hostname" value="localhost" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
解决方案
确保您没有安装启动画面插件cordova plugin rm cordova-plugin-splashscreen
推荐阅读
- elasticsearch - Elasticsearch 索引中的映射字段数
- css - 使用 MS Word 打开 html/css 文件 - 元素表 - 不应用文本换行
- c# - 在查询生成器中更改 IGrouping 键类型
- python - 如何使代码行的缩写?
- angular - 如何从角度材料日期选择器更改日期?
- onesignal - 一个信号 API:如何使用标签过滤器获取号码接收者
- javascript - 如何基于 POPUP 可见性 javascript 执行代码
- html - 显示文本而不是值 HTML 数据列表
- r - 使用 lapply dplyr 计算数据框中每一列的模式
- multicast - 具有多播和单播的 DDS 配置