Is it possible to disable cordova default splash screen, I have removed the plugin but default splash screen for iphone still is showing and for android white screen is showing.Can this be fully removed.
7 Answers
Tested on android:
To temporarily remove delay caused by splash screen:
<preference name="SplashScreenDelay" value="0" />
To permanently remove splash screen:
cordova plugin rm cordova-plugin-splashscreen
Below did not work:
<preference name="SplashScreen" value="none" />
<preference name="FadeSplashScreenDuration" value="0" />
Hi if nothing is working.. for android Goto android build folder find this com\getcapacitor\Splash.java inside capacitor-android project and comment this two line....
line number near by 196 show(a, DEFAULT_LAUNCH_SHOW_DURATION, DEFAULT_FADE_IN_DURATION, DEFAULT_FADE_OUT_DURATION, DEFAULT_AUTO_HIDE, null, null);
line number near by 189 show(a, duration, 0, DEFAULT_FADE_OUT_DURATION, autohide, null, true, config); here you can also set false to 7th parameter - show(a, duration, 0, DEFAULT_FADE_OUT_DURATION, autohide, null, false, config); but it will show you some blank image on startup..so it is good to comment both function....still it is loading white screen at startup..i am finding this issue and soon solve....... then i will update here..
and donot forget to set config.xml setting as told above...
navigator.splashscreen.hide()on deviceReady and tell what happens? - Kevalnavigator.splashscreen.hide();. Adding that timeout means you are telling it to be visible for 5 seconds and then hide. - Keval