-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splash screen is showing app icon instead of splash on Android 12+ #495
Comments
I am seeing the same thing |
Maybe something to make it look nice for the time being. If you create a styles-v31 (android 12+) file with the following contents:
This will make the background of the splashscreen a specific color, if you match this with you app icon it looks quite alright for most (single color) app icons. |
Same issue here |
So we can't use a splash screen graphic any more? It's just the icon with a colored background? That's very disappointing. Does anyone know if this is being worked on? |
Android is moving more towards apps without splashscreens. If you read their documentation on the new API they mention some of this stuff and also some design guidelines. For a capacitor application not showing a splash is just impossible since there is actual load time required. I don't like this approach either but for now there doesn't seem to be a workaround other then compiling for a lower SDK version. Anything above |
Thanks very much for the explanation, @rickbeumers! |
Guys, you can still use nine patches splash screens above api level 12. |
Classic Google, pulling the rug on an API instead of letting it gracefully fall back. I don't understand, can't this library just generate an XML drawable alongside the existing icons it makes? From this link (apache/cordova-android#1441 (comment))
|
Hi. I don't get it. Does it mean that this repo is not up to date ? I started a fresh capacitor project and by using this, I get this issue. Should I generate each assets separetly instead of relying on this ? Thanks for the help. |
tl;dr: It's not a bug. It's a feature. https://capacitorjs.com/docs/guides/splash-screens-and-icons
Googles Design Guide |
Setting the splash screen background color for Android 12+The comment #495 (comment)
does the trick. Here's a full step by step guide to set the splash screen color for Android 12+: In the As the directory will not be immediately visible (as least that the case for me with the default settings for Android Studio), right click on the Click ok and type Paste this: <?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
<item name="android:windowSplashScreenBackground">#FF0000</item>
</style>
</resources> which should look like this: and save the new file. Restart the app and you should now see a red background color. Adapt color to your needs. |
I'm having a weird issue with my Splash Screen being opaque (like with some alpha while the App load) |
When running application on android < 11 devices, splash screen is showing correctly.
On devices using android > 12 (new splash screen API), splash screen is replaced by icon.
The text was updated successfully, but these errors were encountered: