55

Is it possible to disable Cordova default splash screen? I have removed the plugin but the default splash screen for iPhone still is showing and for Android the white screen is showing. Can this be fully removed?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
artur
  • 675
  • 1
  • 6
  • 12
  • Can you try `navigator.splashscreen.hide()` on deviceReady and tell what happens? – Keval Apr 06 '15 at 13:51
  • I have added the code but nothign happnes it's the same splash screen is howing again (.run(function($ionicPlatform) { navigator.splashscreen.hide(); $ionicPlatform.ready(function() { setTimeout(function() { //navigator.splashscreen.hide(); }, 5000)) – artur Apr 06 '15 at 14:52
  • Inside the ready function, you just need to add `navigator.splashscreen.hide();`. Adding that timeout means you are telling it to be visible for 5 seconds and then hide. – Keval Apr 07 '15 at 06:25
  • Have tried but it's the same as previous splash screen is still showing.(.run(function($ionicPlatform) { $ionicPlatform.ready(function() { navigator.splashscreen.hide();) – artur Apr 07 '15 at 07:22
  • I do not have experience with iOS, but there are ways to make it work with native code. As for Android, maybe the blank white screen you see is due to the time taken to load your application in phone's main memory? – Keval Apr 07 '15 at 09:45
  • The white flash is probably caused by not setting the splash icon correctly: `` with a screen.png file mentioned somewhere – mix3d Jun 11 '15 at 20:38

7 Answers7

91

in your config.xml change the value to none in the below line

<preference name="SplashScreen" value="none"/>
Devid Farinelli
  • 7,514
  • 9
  • 42
  • 73
Viky293
  • 1,250
  • 12
  • 18
11

You can try the command to remove cordova splash screen

ionic cordova plugin rm cordova-plugin-splashscreen
Ratnam Yadav
  • 196
  • 3
  • 10
5
cordova plugin -rm cordova-plugin-splashscreen
Devid Farinelli
  • 7,514
  • 9
  • 42
  • 73
mirrrael
  • 67
  • 1
  • 1
5

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" />
Manohar Reddy Poreddy
  • 25,399
  • 9
  • 157
  • 140
1

try this

<preference name="SplashScreenDelay" value="0" />

You can add this to the intelxdk.config.additions.xmlfile.

Devid Farinelli
  • 7,514
  • 9
  • 42
  • 73
Abed Putra
  • 1,153
  • 2
  • 17
  • 37
0

This will definitely remove splash screen from your project

cordova plugin rm cordova-plugin-splashscreen

-3

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...