4 Replies Latest reply on Sep 19, 2016 4:54 AM by Okechukwu Eze

    App hangs on iPad but not iPhone or Android

    Gary__F Level 1

      I'm using cli-6.0.0 for an app which works well on iPhone and Android but freezes an iPad just after the splash screen disappears. The app won't scroll or respond to anything. There is no crash or error.

       

      However, if I change to cli-5.2.0 or earlier it will work. I noticed that the app built using 6.0.0 ignores the default splash screen if there isn't a specific one suitable for the ipad and instead displays the PGB logo version of the splashscreen (and then hangs). Here's my confix.xml file (personal stuff removed).

       

       

      <?xml version="1.0" encoding="UTF-8"?>

        <widget xmlns = "http://www.w3.org/ns/widgets"

        xmlns:gap = "http://phonegap.com/ns/1.0"

        id        = "com.mycompany.myapp"

        versionCode="10"

        version = "1.0.1">

       

        <name>My App</name>

        <description></description>

        <author href="http://www.mycompany.com" email="appdevelopment@mycompany.com">Me </author>

       

        <gap:platform name="ios" />

        <gap:platform name="android" />

       

        <preference name="phonegap-version" value="cli-6.0.0" />

        <preference name="orientation" value="default" />

        <preference name="fullscreen" value="false" />

        <preference name="target-device" value="universal" />

        <preference name="webviewbounce" value="false" />

        <preference name="prerendered-icon" value="true" />

        <preference name="stay-in-webview" value="true" />

        <preference name="detect-data-types" value="true" />

        <preference name="exit-on-suspend" value="false" />

        <preference name="EnableViewportScale" value="true" />

        <preference name="MediaPlaybackRequiresUserAction" value="true" />

        <preference name="AllowInlineMediaPlayback" value="true" />

        <preference name="BackupWebStorage" value="cloud" />

        <preference name="TopActivityIndicator" value="gray" />

        <preference name="KeyboardDisplayRequiresUserAction" value="true" />

        <preference name="HideKeyboardFormAccessoryBar" value="true" />

        <preference name="android-windowSoftInputMode" value="stateAlwaysHidden|adjustResize" />

        <preference name="KeyboardShrinksView" value="true" />

        <preference name="SuppressesIncrementalRendering" value="true" />

        <preference name="android-minSdkVersion" value="14" />

        <preference name="android-installLocation" value="auto" />

        <preference name="KeepRunning" value="true"/>

        <preference name="DisallowOverscroll" value="true"/>

        <preference name="LoadUrlTimeoutValue" value="20000" />

        <preference name="disable-cursor" value="true" />

       

        <!-- Plugins -->

        <plugin name="cordova-plugin-console" />

        <plugin name="cordova-plugin-device" />

        <plugin name="cordova-plugin-dialogs" />

        <plugin name="cordova-plugin-geolocation" />

        <plugin name="cordova-plugin-inappbrowser" />

        <plugin name="cordova-plugin-network-information" />

        <plugin name="cordova-plugin-whitelist" />

        <plugin name="cordova-plugin-vibration" />

        <plugin name="cordova-plugin-splashscreen" />

        <plugin name="cordova-plugin-device-orientation" />

       

        <!-- STATUS BAR: show solid bar at top on white for iOS, on black for Android -->

        <plugin name="cordova-plugin-statusbar" />

        <preference name="StatusBarOverlaysWebView" value="false" />

        <platform name="android">

        <preference name="StatusBarStyle" value="default" />

        <preference name="StatusBarBackgroundColor" value="#000000" />

        </platform>

        <platform name="ios">

        <preference name="StatusBarStyle" value="default" />

        <preference name="StatusBarBackgroundColor" value="#ffffff" />

        </platform>

        <feature name="StatusBar">

           <param name="ios-package" value="CDVStatusBar" onload="true" />

        </feature>

       

        <icon src="icons/icon-57.png" platform="ios" width="57" height="57" />

        <icon src="icons/icon-72.png" platform="ios" width="72" height="72" />

        <icon src="icons/icon-76.png" platform="ios" width="76" height="76" />

        <icon src="icons/icon-120.png" platform="ios" width="120" height="120" />

        <icon src="icons/icon-144.png" platform="ios" width="144" height="144" />

        <icon src="icons/icon-152.png" platform="ios" width="152" height="152" />

        <icon src="icons/icon-36.png" platform="android" density="ldpi" />

        <icon src="icons/icon-48.png" platform="android" density="mdpi" />

        <icon src="icons/icon-72.png" platform="android" density="hdpi" />

        <icon src="icons/icon-144.png" platform="android" density="xxhdpi" />

        <icon src="icons/icon-62.png" platform="winphone" />

        <icon src="icons/icon-173.png" platform="winphone" role="background" />

        <icon src="icons/icon-64.png" />

       

        <!-- SPLASH SCREEN -->

        <platform name="ios">

        <splash src="splashscreens/splashscreen640x960.png" width="640" height="960" />

        <splash src="splashscreens/splashscreen640x1136.png" width="640" height="1136" />

        <splash src="splashscreens/splashscreen768x1024.png" width="768" height="1024" />

        <splash src="splashscreens/Default-Portrait@2x~ipad_1536x2048.png" width="1536" height="2048"/>

        </platform>

        <platform name="android">

        <splash src="splashscreens/splashscreen480x800.png" density="hdpi" />

        <splash src="splashscreens/splashscreen720x960.png" density="xhdpi" />

        </platform>

        <splash src="splash.png" />

        <preference name="LoadingDialog" value="Loading..."/> <!-- Android -->

        <preference name="show-splash-screen-spinner" value="true" />

        <preference name="auto-hide-splash-screen" value="true" />

        <preference name="SplashScreenDelay" value="2000" />

        <preference name="SplashScreenBackgroundColor" value="#ffffff" />

        <preference name="SplashMaintainAspectRatio" value="true" />

        <preference name="FadeSplashScreen" value="false" />

       

        <access origin="*" />

        <allow-navigation href="*" />

       

        </widget>

       

      Thanks in advance for any help.

      Gary.