Splash screen for api level 31 - Forum

Forum Navigation
You need to log in to create posts and topics.

Splash screen for api level 31

Hello everyone!

Starting in Android 12, Google has implemented a new SplashScreen API to control the app launch animation which runs on a device with Android 12 and higher.

Is there anyone who has the experience to make a splash screen for Android 12?

Hello to all Cordova lover!

Recently I have successfully published 3 apps to the Play Store with new rules and policies of the Play console. I like to share my experiences and works here, it may be useful for someone!

At first, I think the new Splash screen API is so easy, there is no need to install any plugin just add the following code to the Config.xml file.

<platform name="android">
    <!-- Default -->
    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
</platform>

Note: If you are not familiar with Splashscreen.xml file like me, you can use instead png file.

This is my configuration you can see the result in the attachment video:

<preference name="DisallowOverscroll"       value="true" />
<preference name="android-targetSdkVersion" value="32" />
<preference name="android-compileSdkVersion" value="32" />
<preference name="android-minSdkVersion"    value="22" />
<preference name="loadUrlTimeoutValue" value="700000"/>

<platform name="android">
    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.png" />
    <preference name="FadeSplashScreenDuration" value="750"/>
    <preference name="AutoHideSplashScreen" value="false" />
</platform>

You can find the app on the Play Store with this link.

Note: You also need to install Android API level 31 or 32 & update the Java version to Java 11

Uploaded files:
  • You need to login to have access to uploads.
luishp and CDY@44 have reacted to this post.
luishpCDY@44