ioscordovahybrid-mobile-appcordova-ios

cordova ios version 6.2 white screen on launch (woking on ios 5.1.1)


I spent some time trying to understand why this white screen is showing up but since I'm new to Cordova I have no clue what else to try... This is what i did :

<widget id="app.bee.api" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>App</name>
    <description> demo app</description>
    <author email="author@gmail.com">author</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />

    <preference name="scheme" value="app" />
    <preference name="hostname" value="localhost"  /> 

    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>

</widget>

Solution

  • It's because when switching to iOS 6+, UIWebView is deprecated. Which also means that WKWebView is the new default and the splash screens plugin is not required anymore is you target iOS only :

    Note: iOS implementation has been moved to the core framework. If using cordova-ios@5 or earlier, use cordova-plugin-splashscreen@5 If using cordova-ios@6 or later, use cordova-plugin-splashscreen@6. If developing exclusively for the iOS platform, this plugin can be uninstalled.

    Source

    Also the format has changed in the XML for splashscreens. You should read

    UIWebView Deprecated

    Cordova iOS 6+