Remove splash screen in phonegap for both ios and android

北城余情 提交于 2019-12-05 07:32:06
Bhavin

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.

Praful Bhatnagar

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.

Hope it will help someone:

Using PhoneGap 2.6.0, what I did is just commenting the:

<plugin name="SplashScreen" value="CDVSplashScreen" />

line in the PhoneGap's config.xml file (usually located at iOS project root)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!