How to remove default cordova splash screen?

@angular/core: ^16.0.0
@ionic/angular: ^7.0.0
cordova-android: 12.0.1
cordova-plugin-splashscreen: ^6.0.1
@awesome-cordova-plugins/splash-screen: ^6.6.0

In the root config.xml, added these:

<preference name="FadeSplashScreenDuration" value="0" />
<preference name="SplashScreenDelay" value="0" />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="none" />

SplashScreenDelay was reduced, but the cordova default icon still shows for a brief period.

I have tried almost all the solutions out there, but still the cordova splash icon is not going away. I tried editing some files like config.xml and theme.xml under platfrom/android, but those changes go away upon running ionic cordova run android. Is there any way to make permanent changes under platfrom/android ? Or any other solution to just remove the cordova default splash screen ?

I also tried cordova plugin -rm cordova-plugin-splashscreen and cordova platform rm android, but still the cordova default splash screen shows after running build on emulator.

Also to note here, we just don’t want any splash screen like adding custom assets for splash screens, not even the default one.

If you are testing on Android 12 or newer there is no way of getting ridden of the splash screen, it’s part of the OS now.
The only thing you can do is to provide an icon so it doesn’t use the Cordova one.

cordova-android 12 has the splash code built in, so you have to remove cordova-plugin-splashscreen.

<preference name="AndroidWindowSplashScreenAnimatedIcon" value="none" /> none here has no effect, you have to configure it to use the icon you want

Okay thanks for the insight. But is there any way to make permanent changes in the platfrom/android files ? Like editing manifest file or any other file.

for editing the manifest there is the edit-config and config-file tags of the config.xml

or you can also use hooks to run node scripts that modify the needed files

1 Like

This is unbelievable…! New apps have to be android 12, cordova splash screens are integral to android 12. So all ionic apps now have a cordova splash screen?!? Is this an ionic issue or a cordova issue?

It’s not a “cordova splash screen”, it’s the Android splash screen.

You can configure it to use any icon instead of the default cordova icon, but you can’t disable the splash screen.