【问题标题】:White screen of death after switching to Cordova iOS 6.1.0切换到 Cordova iOS 6.1.0 后出现白屏死机
【发布时间】:2020-07-11 15:33:07
【问题描述】:

我的应用在带有 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


【解决方案1】:

确保您没有安装启动画面插件cordova plugin rm cordova-plugin-splashscreen

【讨论】:

    【解决方案2】:

    我最近开始为我的应用升级 Cordova-ios 版本,有很多问题和经验教训,这些是您可以尝试调试应用的一些事情。

    1. 如果您使用 Xcode iPhone 模拟器,您可以在 Safari 中调试应用程序this link 可能会为您提供有关如何调试的更多信息
    2. 首先删除所有插件和平台。之后,添加平台并一一安装插件,这可能有助于确定是否有任何插件有问题。
    3. 在我的应用中,显示的白色实际上来自 UI,但没有显示任何内容,请尝试在应用的首页上添加一些静态内容
    4. 在我的例子中,应用程序使用了 angular 和 Cordova,需要更改路由配置以使用 useHash: true,

    【讨论】:

      猜你喜欢
      • 2015-10-17
      • 2015-01-25
      • 2017-06-12
      • 1970-01-01
      • 2018-01-20
      • 1970-01-01
      • 1970-01-01
      • 2014-04-12
      • 2011-02-24
      相关资源
      最近更新 更多