Skip to content
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

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

Closed
janseris opened this issue May 18, 2022 · 9 comments
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@janseris
Copy link

janseris commented May 18, 2022

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:

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

@janseris janseris added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 18, 2022
@janseris janseris changed the title [Android] When app is started from device, icon is used as splashscreen (Android 12) [Android] (Android 12 only) When app is started from device, icon is used as splashscreen May 18, 2022
@Eilon Eilon added the area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer label May 19, 2022
@jfversluis jfversluis removed the s/needs-verification Indicates that this issue needs initial verification before further triage will happen label May 23, 2022
@kristinx0211 kristinx0211 added the s/verified Verified / Reproducible Issue ready for Engineering Triage label May 25, 2022
@kristinx0211
Copy link

verified repro on android 12. repro project:
MauiApp3.zip

@jzhao8402
Copy link

I have the same problem on android 11 emulator and physical devices. It does not seem like only on android 12.

@kylewhittington
Copy link

I can confirm this behaviour on Android 12. No matter which splashscreen image I put in, it's still showing the ".NET" from the App Icon. Surely this is a big deal? Any workarounds? 12 is pretty ubiquitous.

@janseris
Copy link
Author

janseris commented Aug 18, 2022

@Eilon there is noone assigned to solve this issue and it has been confirmed again lately and it is already 3 months old.

@AlexeyStarkov
Copy link

AlexeyStarkov commented Aug 23, 2022

The issue is still there on the latest available preview viersion

@supershopping
Copy link

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

@MagicAndre1981
Copy link
Contributor

After 3 months, still no plan to fix this issue?

The issue is tracked now in new issue - Add support for Android 12+ Splash Screen APIs:

@mattleibow
Copy link
Member

Thanks @MagicAndre1981! As you mention, the issue is tracked in #9794 and will link to other issues of interest relating to splash screens.

@mattleibow mattleibow closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2022
@mattleibow
Copy link
Member

And just and FYI, I found a nice and simple workaround for now until I can fix this in MAUI: #9794

@ghost ghost locked as resolved and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests