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

Maui Splash Screen on Android using wrong svg icon #7772

Closed
tekmun opened this issue Jun 5, 2022 · 6 comments
Closed

Maui Splash Screen on Android using wrong svg icon #7772

tekmun opened this issue Jun 5, 2022 · 6 comments
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working
Milestone

Comments

@tekmun
Copy link

tekmun commented Jun 5, 2022

Description

The splash screen icon on Android is using the svg file specified in the MauiIcon instead of MauiSplashScreen. This is an issue if I choose to use different svg files for AppIcon and Splash Screen.
Looking into the apk, svg files are converted into xml files. I suspect the Splash Screen xml file is referenced to the MauiIcon instead of MauiSplashScreen during the generation of xml files.
The issue does not exist in iOS.

Steps to Reproduce

  1. Create a new Maui App.
  2. Replace the <MauiSplashScreen Include="Resources\splashscreen.svg"
  3. Add splashscreen.svg into the Resources folder.

Version with bug

6.0 Release Candidate 3

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android API 31

Did you find any workaround?

No response

Relevant log output

No response

@tekmun tekmun added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 5, 2022
@janseris
Copy link

janseris commented Jun 5, 2022

It happens on Android 12 only afaik (and possibly Android 13)
#7303

@Eilon Eilon added the area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer label Jun 6, 2022
@tekmun
Copy link
Author

tekmun commented Jun 7, 2022

It happens on Android 12 only afaik (and possibly Android 13) #7303
Verified that the issue does not happen in Android 11 (API 29). Is it possible to be fixed for Android 12, 13 and beyond?

@MagicAndre1981
Copy link
Contributor

dotnet/android#6517

@StepKie
Copy link

StepKie commented Jun 7, 2022

Corroborated, happens for example with MAUI DI sample app from James Montemagno. Splash screen foreground shows up on Android 12 (API 31), does not show on Android 11 (API 30). Color in MauiSplashImage is read (i.e. changing Color in <MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" BaseSize="128,128" /> will display a different color, but the ".NET" will still not show up.

@kristinx0211
Copy link

replace the MauiSplashScreen as <MauiSplashScreen Include="Resources\Images\dotnet_bot.svg" Color="#512BD4" BaseSize="128,128" /> , the Splash Screen work ok on android 11, but not work on android 12.

@jfversluis
Copy link
Member

Duplicate of #7303

@jfversluis jfversluis marked this as a duplicate of #7303 Jun 13, 2022
@mattleibow mattleibow added this to the 6.0-sr3 milestone Jul 4, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 3, 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/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants