I’m trying to manually set the time until the splashscreen disappears (for Android and iOS). There is this formula and a thread that describes how to achieve that.
I installed the cordova splash plugin,
removed all platforms,
added all platforms again and my config.xml looks like this
<preference name="SplashScreen" value="screen"/>
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="SplashScreenDelay" value="10000" />
<preference name="AutoHideSplashScreen" value="false"/>.
I even added custom code in the app.js after installing and injecting ng-module:
$ionicPlatform.ready(function() {
$timeout(function() {
$cordovaSplashscreen.hide();
}, 5000, false);
});
It doesn’t work though, the splashscreen is just shown for a very short time. I assume it has something to do with the fact that
platforms/ios/cordova/defaults.xml
doesn’t seem to be overwritten according to what I specified in the config.xml.
My defaults.xml:
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value=".25" />
Any hint what I could do wrong here?