title: App build with Cordova/Phonegap stuck on black screen after splash, on first load after installation
body: <p>I am building a app with Cordova/Phonegap and also using a chcp plugin in it. when I open it for the first time after installation, the app is stuck on a black screen after the splash screen. </p>
  
  <p>When I close the app and start it again, it works fine but just with a 9-10 seconds delay in the startup, where I have extended the time for splash screen to 10 second to avoid the black screen.</p>
  
  <p>Here is the <code>config.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.storehippo.profitdeals" versionCode="103" version="1.0.3"&gt;
      &lt;name&gt;Test&lt;/name&gt;
      &lt;description&gt;CHCP splash Test&lt;/description&gt;
      &lt;author email="akshay.tiwari@mausis.com" href="http://cordova.io"&gt;Akshay Tiwari&lt;/author&gt;
      &lt;content src="index.html"/&gt;
      &lt;access origin="*"/&gt;
      &lt;gap:config-file platform="ios" parent="CFBundleShortVersionString"&gt;
          &lt;string&gt;103&lt;/string&gt;
  
      &lt;/gap:config-file&gt;
  &lt;chcp&gt;
              &lt;config-file url="http://s3.amazonaws.com/mystore.in/s/55d178025c64d45531612809/ms.mobile_app_themes/560bd8ec31fec3dd1dd66fb7/chcp.json"/&gt;
      &lt;/chcp&gt;
      &lt;gap:platform name="android"/&gt;
      &lt;gap:platform name="ios"/&gt;
      &lt;preference name="permissions" value="none"/&gt;
      &lt;preference name="orientation" value="default"/&gt;
      &lt;preference name="android-windowSoftInputMode" value="adjustResize"/&gt;
      &lt;preference name="fullscreen" value="false"/&gt;
      &lt;preference name="webviewbounce" value="true"/&gt;
      &lt;preference name="android-minSdkVersion" value="14"/&gt;
      &lt;preference name="KeepRunning" value="false"/&gt;
      &lt;preference name="LoadUrlTimeoutValue" value="10000"/&gt;
      &lt;preference name="android-installLocation" value="auto"/&gt;
      &lt;preference name="AutoHideSplashScreen" value="false"/&gt;
      &lt;preference name="SplashScreenDelay" value="10000"/&gt;
      &lt;preference name="DisallowOverscroll" value="true"/&gt;
      &lt;preference name="StatusBarOverlaysWebView" value="false"/&gt;
      &lt;preference name="StatusBarBackgroundColor" value="#000000"/&gt;
      &lt;preference name="StatusBarStyle" value="lightcontent"/&gt;
      &lt;preference name="phonegap-version" value="3.7.0" /&gt;
      &lt;icon src="nocon.png"/&gt;
      &lt;icon src="icons/ios/reader-57-1.png" gap:platform="ios" width="57" height="57"/&gt;
      &lt;icon src="icons/ios/reader-72-1.png" gap:platform="ios" width="72" height="72"/&gt;
      &lt;icon src="icons/ios/reader-76-1.png" gap:platform="ios" width="76" height="76"/&gt;
      &lt;icon src="icons/ios/reader-114-1.png" gap:platform="ios" width="114" height="114"/&gt;
      &lt;icon src="icons/ios/reader-120-1.png" gap:platform="ios" width="120" height="120"/&gt;
      &lt;icon src="icons/ios/reader-144-1.png" gap:platform="ios" width="144" height="144"/&gt;
      &lt;icon src="icons/ios/reader-152-1.png" gap:platform="ios" width="152" height="152"/&gt;
      &lt;icon src="icons/android/ldpi.png" gap:platform="android" gap:density="ldpi"/&gt;
      &lt;icon src="icons/android/mdpi.png" gap:platform="android" gap:density="mdpi"/&gt;
      &lt;icon src="icons/android/hdpi.png" gap:platform="android" gap:density="hdpi"/&gt;
      &lt;icon src="icons/android/xhdpi.png" gap:platform="android" gap:density="xhdpi"/&gt;
      &lt;gap:splash src="splash.png"/&gt;
      &lt;gap:splash src="splash/ios/Default.png" gap:platform="ios" width="1024" height="768"/&gt;
      &lt;gap:splash src="splash/ios/Default-Portrait.png" gap:platform="ios" width="768" height="1024"/&gt;
      &lt;gap:splash src="splash/ios/Default@2x.png" gap:platform="ios" width="2048" height="1536"/&gt;
      &lt;gap:splash src="splash/ios/Default-Portrait@2x.png" gap:platform="ios" width="640" height="960"/&gt;
      &lt;gap:splash src="splash/ios/Default-568h@2x.png" gap:platform="ios" width="640" height="1136"/&gt;
      &lt;gap:splash src="splash/android/ldpi.png" gap:platform="android" gap:density="ldpi"/&gt;
      &lt;gap:splash src="splash/android/mdpi.png" gap:platform="android" gap:density="mdpi"/&gt;
      &lt;gap:plugin name="cordova-hot-code-push-plugin" source="npm" version="1.0.4"/&gt;
      &lt;gap:plugin name="cordova-plugin-device" source="npm" version="1.1.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-dialogs" source="npm" version="1.2.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-inappbrowser" source="npm" version="1.1.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-network-information" source="npm" version="1.1.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-push-notification" source="npm" version="2.5.2" /&gt;
      &lt;gap:plugin name="cordova-plugin-splashscreen" source="npm" version="3.0.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-statusbar" source="npm" version="2.0.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.0.0" /&gt;
      &lt;gap:plugin name="cordova-plugin-x-toast" source="npm" version="2.2.2" /&gt;
      &lt;gap:plugin name="cordova.plugins.diagnostic" source="npm" version="2.2.4" /&gt;
  &lt;/widget&gt;
  </code></pre>