Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

SplashScreen not working

$
0
0

@dragan1 wrote:

Hi,

I have installed cordova-plugin-splashscreen and in my config.xml I have:

  <preference name="SplashScreen" value="screen"/>
  <preference name="SplashScreenDelay" value="3000"/>

I also created splash.png and with

$ ionic resources --splash

I created splashscreens as screen.png

Now, when I run on device there is no splashscreen, so I created separte js file and I put:

onDeviceReady: function() {
mySplash();

function mySplash() {
	navigator.splashscreen.show();
setTimeout(function(){ navigator.splashscreen.hide(); }, 5000);

}

and than the splashscreen is shown, but first I can see home page for millisecond and then the splashscreen for 5 seconds.

How can i fix this, so it could be shown without js function onDeviceReady ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>