Voltbuilder SplashScreen Bug above Android version 10.1.2

Hey guys

As Google is requiring compilation for Android 14 from August 24, 2024, we decided to compile our applications using

<engine name='android' spec='13.0.0' />

However, we noticed that the splashscreen once again shows the cordova logo instead of our splashscreen.
We did several tests and it only works on

<engine name='android' spec='10.1.2' />

If you go up to

<engine name='android' spec='11.0.0' />

already has an error
Here are 2 videos with the openings, one with 10.1.2 (OK) and the other with 11.0.0 (not ok)


P.S. I am using in config.xml
recommended in the voltbuilder documentation

<engine name='android' spec='11.0.0' />
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png" /> 
<preference name="AndroidWindowSplashScreenBackground" value="#000000" />
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
   <application android:exported="true" />
</edit-config>

Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)

sorry ant tks

Splash screens work very differently in the latest versions of Android. They essentially are just based on the app icon. Have you customized your app icon to be something other than the Cordova icon?

yes i use the icon property
image

What do you have in the icon (1024) property in Project Properties / VoltBuilder?

image

1024qwifi.png is in extraFiles List

…and how about Splash (2732) in the same area?

is there!

Have a look at this doc on splashscreens: There are certain lines you need to have in your config.xml.

Can you check if they are there?

Yeah, we use those lines…
to take it easy to you see the problem, we got the barcode sample, and compiled in android 14, with our splash and iccon, follow tthe simple project in the attach
CordovaBarcode.appstudio.zip (2.2 MB)
, the problem persists

Thanks - we’ll give it a try.

Sorry,if I sound busybody.could it be lacking of this line.
<preference name="android-compileSdkVersion" value="34" />

1 Like

It’s not finding your splash screen. Did you see this line in the log?

The "AndroidWindowSplashScreenAnimatedIcon" value does not exist. Cordova's default will be used.

The correct path in config.xml should be:

<preference name="AndroidWindowSplashScreenAnimatedIcon" value="www/splashTemplate.png" />

i copied from voltbuilder docs…

The VoltBuilder docs assume that is where the file actually is. In your project, it was in www.

ok It worked, but it reduced my splashscreen within a circle… Is it really supposed to be like that?

yeah in the sample i forgot to change tks.