Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove splash screen manually in PhoneGap

On iOS I would like to hold the splash screen up until my app is ready. I see there is a flag in the Cordova.plist called AutoHideSplashScreen -- if I turn this off how to I trigger it's removal on my own?

Thanks!

like image 419
fancy Avatar asked Jun 13 '12 13:06

fancy


2 Answers

On iOS you should be able to call navigator.splashscreen.hide();

Support for doing this in Android is available since 1.8.0.

like image 71
codemonkey Avatar answered Sep 20 '22 00:09

codemonkey


A quick look in Google and I found this

Basically what you have to do is:

navigator.splashscreen.hide();

On Cordova 1.6.0 is:

cordova.exec(null, null, "SplashScreen", "hide", [])
like image 25
SERPRO Avatar answered Sep 24 '22 00:09

SERPRO