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
<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
It appears that despite trying various solutions, including adjustments to the config.xml file and removing the cordova-plugin-splashscreen, the default Cordova splash screen persists briefly. On Android 12 or newer, the splash screen is integrated into the OS, making it difficult to remove entirely. While providing a custom icon can replace the default one, removing cordova-plugin-splashscreen may not fully resolve the issue due to built-in splash code in cordova-android 12.