Splash Screen not showing for android app

I have set up the project as per the instructions based on this article Generating Icons and Splash Screens | VoltBuilder . I have added the both the preferences

in config.xml and change the splash screen name to splashTemplate.png and change the size to 2732×2732px .

But still in my app it is showing default Cordova splash screen.

Next step is to look at the log. You should see some messages about creating splash screens.

What email address are you submitting jobs under?

We are getting this log in voltbuilder log for

I am using twirll.developer@twirll.com account to build the app.

Thanks.

I think the problem may be with the formatting of your files. I notice your icon file is 72 dpi, while your splash screen is 96 dpi.

Here are a couple of images which work. Try them in your project. If it works, the problem is with your images.


Thanks for sending me your project.

  1. The project you sent does not build, so I was not able to do anything with it.

  2. Under what conditions are you not seeing the splash screen?

Hi folks, I’m having the same issue here, I’ve tried some Android devices whit Android12 and lower versions and always see the cordova logo in the splash screen :confused: , I’m using the jonathan@simplesolutions.com.ar account to upload the zip. On the log file I can see that the splash images are being created from my splashTemplate.png file, but I don’t know why, I keep seen the cordova logo…

@Seba - what device are you testing on?

Edit: never mind, I am able to reproduce this here.

1 Like

@seba - here is what is in your config.xml:

    <platform name="android">
        <allow-intent href="market:*" />
        <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
        ...
        <preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splash.png" />
   
    </platform>

Notice you have two different values for AndroidWindowSplashScreenAnimatedIcon? It probably cannot find the right one.

1 Like

Thanks for finding that :+1:, but it keep doing the same after I’ve removed the first declaration of the AndroidWindowSplashScreenAnimatedIcon preference. In the log I’m seen this:
2022-09-21T14:14:53.851Z cordova-res:platform Using '/resources/splashTemplate.png' for splash source image for android

But I’m still getting the cordova logo on the splash screen not my splashTemplate.png image :confused:

I’m using:
moto g20 - API 30 (real device)
Pixel4 - API 29 (emulator)
generic device - API 31 (emulator)

Same results in all of them.

Could you try moving that preference outside the <platform>...</platform block?

1 Like

Yes, in deed if you check the last build was made with the preference tag outside the platform block. I put it just after the <preference name="AutoHideSplashScreen" value="true" />

Your statement is

    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splash.png" />

but you don’t have a file with that name in your resources folder.

1 Like

Thank you!!! Sorry for bothering you whit such a dumb thing :sweat_smile:

Thanks for the good news!

1 Like

Hello Support Team,

I have used the same image that was provided by you in the thread and still cordova default image is coming for android 12 devices. I have downloaded the image provided and converted it into the png image.
I am using twirll.developer@twirll.com account to generate the android app.

Are you still seeing this problem? I looked at your latest build and it seems fine.