【问题标题】:"cordova-plugin-splashscreen" crash and Freezes app in new IOS 10.2 and Rejected in the app“cordova-plugin-splashscreen”崩溃并冻结新 IOS 10.2 中的应用程序并在应用程序中被拒绝
【发布时间】:2017-06-02 03:02:21
【问题描述】:

你好,我对这个问题很着迷,我的应用在应用商店被拒绝,因为他们无法在 ios 10.2 的设备上打开它挂在主屏幕上,我有没有找到几个目标更改的解决方案

<meta "Content-Security-Policy" content = "default-src gap: // ready file: // * *; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: *; style-src 'Self' 'unsafe-inline' *; img-src 'self' data: blob: *; media-src 'self' mediastream: blob:; connect-src * blob: ">

但没有成功,我听说你说它可以在没有插件的情况下工作,然后我只是制作了 9 个构建器,直到我弄清楚是哪个插件导致了错误并且完全没有它,一切正常,它很快就会在白屏上导致错误,直到别人的插件解决问题的方法是暂时使用其他非官方的插件,希望有人能快速找到解决方案,因为phonegap 99%的应用都使用这个插件。

【问题讨论】:

  • 您找到解决方案了吗?
  • @LokeshSuthar 你好,是的,解决方案就在下面的答案中

标签: ios store


【解决方案1】:

您好,我发现了问题的根源,我已成功使用首选项名称 = "AutoHideSplashScreen" 值 = "false" 选项来通过代码管理我的启动时间,但是从 10.2 开始出现问题并且屏幕所以我不得不将自动隐藏选项重新包含为 true,因此应用程序不会再崩溃,遵循初始屏幕首选项的完整列表:preference name = "AutoHideSplashScreen" value = "true

插件版本Config.xml

<Plugin name = "cordova-plugin-splashscreen" source = "npm" spec = "4.0.1" />
<Preference name = "SplashScreen" value = "screen" />
<Preference name = "AutoHideSplashScreen" value = "true" />
<Preference name = "ShowSplashScreenSpinner" value = "true" />
<Preference name = "FadeSplashScreen" value = "false" />
<Preference name = "FadeSplashScreenDuration" value = "1.0" />
<Preference name = "SplashScreenDelay" value = "100" />
<Preference name = "SplashScreenBackgroundColor" value = "# FE5D01" />
<Preference name = "SplashMaintainAspectRatio" value = "true" />

和代码 app.js

document.addEventListener('deviceready', function() {
    navigator.splashscreen.hide();                      
    });

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-27
    • 2017-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多