question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] (Android 12 only) When app is started from device, icon is used as splashscreen

See original GitHub issue

Description

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: image Started from Visual Studio: image

Android 11: image

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:closed
  • Created a year ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
supershoppingcommented, Aug 30, 2022

After 3 months, still no plan to fix this issue? A splash screen is the first thing you see in an app.

0reactions
mattleibowcommented, Aug 31, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found