Hi
Is anyone else having this issue with the splash screens in iOS?
I have a splash screen and al files are in place but when running the app first I see the splash screen and then the white webview with a loader for about 0.5 - 2 seconds and after that I see the app.
If course I do have the navigator.splashscreen.hide()
code in a deviceready
callback within app.run()
but when I console.log
that line, it fires way after the white screen is hidden. This is my code (snippet):
.run(['$ionicPlatform', function ($ionicPlatform) {
//*** Workaround for issue [#766](https://github.com/Leaflet/Leaflet/issues/766)
if (angular.isDefined(L)) {
L.Icon.Default.imagePath = 'images/leaflet';
// L.Icon.Default.imagePath = 'vendor/leaflet-dist/images';
}
$ionicPlatform.ready(function () {
if (navigator.splashscreen) {
console.warn('Hiding splash screen');
// We're done initializing, remove the splash screen
navigator.splashscreen.hide();
}
});
}]);
In my config.xml
(which is in the root of my project, since I’m using Cordova 3.4.1-0.1.0
) I have the following lines:
<feature name="SplashScreen">
<param name="ios-package" value="CDVSplashScreen"/>
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen"/>
<param name="onload" value="true"/>
</feature>
And:
<preference name="ShowSplashScreenSpinner" value="false" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="FadeSplashScreen" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="10000" />
Is anyone else experiencing this problem? This is a big no-go for the launch of our app and I have no idea how to fix it.
-Robin