[Android] (Android 12 only) When app is started from device, icon is used as splashscreen
See original GitHub issueDescription
This is maybe caused by Android 12 overriding the splashscreen behavior. I read that in Android 12, there is new splashscreen API. It seems like for all apps, the icon is used as splashscreen by default.
This applies to both Debug
and Release
.
This means that for release apps (production), icon is displayed as splashscreen for users.
The issue:
- when the app is executed from the device app menu, icon with its background is displayed as splashscreen image
- when the app is executed from Visual Studio, the splashscreen image does not render at all (https://github.com/dotnet/maui/issues/7289)
Steps to Reproduce
Run an app which has different splashscreen and icon image to observe the behavior.
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" /> <!-- default -->
<MauiSplashScreen Include="Resources\bird.png" Color="Green" BaseSize="128,160"/> <!-- custom image and color -->
Started from phone: Started from Visual Studio:
Android 11:
Version with bug
Release Candidate 3 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12
Did you find any workaround?
No response
Relevant log output
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Splash screens | Android Developers
Starting in Android 12, the SplashScreen API lets apps launch with animation, including an into-app motion at launch, a splash screen showing your...
Read more >A Comprehensive Guide to Android 12's Splash Screen API
By default all apps on Android 12 will show a splash screen with the app icon at the centre. Sounds great until you...
Read more >Android 12 Splash Screen Icon Not Displaying
For some reason when the app is launched through android studio it doesn't show the icon. Kill the app and launch app from...
Read more >Splash Screen in Android
Splash screen is a screen that loads when you launch an app. When you first open your application, a loading screen, also known...
Read more >Splash Screen Tutorial for Android
Splash screens have an icon and background you can customize. Android 12 takes those from the app icon. Even if you're happy with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After 3 months, still no plan to fix this issue? A splash screen is the first thing you see in an app.
And just and FYI, I found a nice and simple workaround for now until I can fix this in MAUI: https://github.com/dotnet/maui/issues/9794