Fix splash screen black/white screen issue

The solution will work on cordova version > 4.00

Install splash screen plugin

cordova plugin add cordova-plugin-splashscreen

Add these lines in config.xml

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

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

From config.xml remove following lines

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

 

In app.js add following lines

angular.module('starter.controllers', []) 

.run(function($ionicPlatform) { 

$ionicPlatform.ready(function() {

 setTimeout(function() { 

navigator.splashscreen.hide(); 

}, 100); 

}); 

})
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s