Ionic 6 / Capacitor 4 - Android Splash Screen is being streched

Are you using cordova-res or @capacitor/assets to generate your splash images?

Is it possible there is no news?

On Xiaomi smartphones with Capacitor 4, you can’t see the splash screen at all, whereas on other smartphones you can see it but it’s stretched.
Finally on Android 12+ you can see the app icon but that’s also fine.

That’s an Android 12 bug, it’s mentioned on the Splash Screen plugin docs.

On Android 12 the Splash Screen is part of the OS and won’t show when you open the app from Android Studio, but will show if you open the app from the app icon (except if using some launchers that seem to open the apps in a different way than regular launcher).

Since the splash screen is part of the OS, there is no way of fixing it. this affects all apps, doesn’t matter which framework they use (cordova, capacitor, react native, flutter, native apps, unity, etc.)

Google has fixed it for Android 13, but won’t fix it for Android 12 since it’s not a security issue.

For those still having issues with splash screen still – A community member @aparajita just created a new splashscreen plugin : [Announce] Better splash screens are here!

Maybe try this and see if you have better luck?

2 Likes

You will definitely have better luck. :slightly_smiling_face:

As noted in my plugin docs, Android 12+ imposes strict constraints on the type and size of splash images, and I assume you want the same splash screen on all Android versions, so my plugin uses those guidelines exclusively.

2 Likes

Any news in this issue? I woul like to use default capacitor generator of splash…

2 Likes