Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove splash screen in phonegap for both ios and android

I am trying to remove the splash screen completely in the phonegap application for both ios and android. The navigator.hide() function works only after the loading of html page, but i need to remove the splash screen even before that. Please let me know is there any option available for doing this.

like image 340
Karthikeyan P Avatar asked Jan 03 '13 09:01

Karthikeyan P


2 Answers

Cordova 1.6.0 – the navigator.splashscreen interface has been removed pending cross-platform support. Now You can use :

// to hide
cordova.exec(null, null, "SplashScreen", "hide", [])
// to show
cordova.exec(null, null, "SplashScreen", "show", [])

I found it Here : iOS PhoneGap / Cordova – Splash screen control

If you want some other Reference then check PhoneGap Android SplashScreen Just Got Better in the Link.

You can also go through this Google Discussion.

Hope it will be helpful to you.

like image 132
Bhavin Avatar answered Nov 05 '22 14:11

Bhavin


Check out this post

copying the accepted answer for quick reference:

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 2
Praful Bhatnagar Avatar answered Nov 05 '22 14:11

Praful Bhatnagar