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 12+]Splash screen doesn't appear on maui app #12636

Closed
GnanaPriyaNamasivayam opened this issue Jan 13, 2023 · 11 comments
Closed

[Android 12+]Splash screen doesn't appear on maui app #12636

GnanaPriyaNamasivayam opened this issue Jan 13, 2023 · 11 comments
Labels
area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer platform/android 🤖 s/needs-info Issue needs more info from the author t/bug Something isn't working version/android-12
Milestone

Comments

@GnanaPriyaNamasivayam
Copy link

Description

Splash does work fine up to Android v 11.0 and not in 12.0.

Noticed some open issues in Git Hub with a workaround PFB. Unfortunately, it doesn't work.

Sample:
https://github.com/dotnet/maui-samples/tree/main/7.0/Fundamentals/ContextMenu

  1. Just run above sample on API 31, you will see blank splash UI.
  2. Add the mentioned workaround in this repository, still facing same issue, it does not resolve. Add better support for Android 12+ Splash Screen APIs #9794

PFA issue replicable image for reference,
image

Steps to Reproduce

  1. Just run above sample on API 31, you will see blank splash UI.
  2. Add the mentioned workaround in this repository, agin run the sample with workaround.

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/7.0/Fundamentals/ContextMenu

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

11.0

Did you find any workaround?

No response

Relevant log output

No response

@GnanaPriyaNamasivayam GnanaPriyaNamasivayam added the t/bug Something isn't working label Jan 13, 2023
@mattleibow mattleibow added version/android-12 area-single-project Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer labels Jan 13, 2023
@mattleibow mattleibow added this to the Backlog milestone Jan 13, 2023
@ghost
Copy link

ghost commented Jan 13, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@GnanaPriyaNamasivayam
Copy link
Author

Hi @mattleibow,
The workaround you mentioned as a fix in the below thread, does not resolve the issue.
#7289
#9794

You have also mentioned its fixed in PR #8394 , Any update on its release?
Any alternate workaround or suggestion from your end would help, and its a critical issue for us.

Thanks.

@GnanaPriyaNamasivayam
Copy link
Author

@mattleibow In the Nuget store the latest version has been released 6.0.550 on Jan 19, Seems the issue still exists.
Could you provide us with any update on this issue? It will help us to process further.

@StepKie
Copy link

StepKie commented Feb 27, 2023

So from my testing, it is not Android 12+ as indicated by title but exactly Android 12 where it is not working.

Repro for example is simply the sample app from https://github.com/enisn/UraniumUI

  • emulator Pixel 5 API 30 (Android 11) - looks ok (including icon from svg)
  • emulator Pixel 5 API 31 (Android 12) - only shows background color, no icon
  • emulator Pixel 5 API 33 (Android 12) - looks ok again ...

@mattleibow
Copy link
Member

mattleibow commented Feb 28, 2023

That is the thing. Android 12 has a "feature" of only displaying the splash screen if you are launching from the home screen - so running via the IDE is not going to show the splash. Same happens if you restore the app via a notification.

https://issuetracker.google.com/issues/205021357?pli=1#comment14

On Android 12:
That's intended. By default it only show from the launcher.
The splash screen icon won't be shown otherwise, that includes notifications, deeplinks, start from other applications.

I think they reverted this "feature" in later Android versions :) Yay!

@mattleibow mattleibow added the s/needs-info Issue needs more info from the author label Feb 28, 2023
@ghost
Copy link

ghost commented Feb 28, 2023

Hi @GnanaPriyaNamasivayam. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Mar 6, 2023
@ghost
Copy link

ghost commented Mar 6, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Mar 9, 2023
@suchithm
Copy link

suchithm commented Apr 5, 2023

Same issue. What is the additional information required

@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Apr 5, 2023
@mattleibow
Copy link
Member

I suppose the bot is a bit wrong, but there is no real new info needed.

Android 12 does not support splash screens correctly and will only show it if launched via the default OS launcher. It will not show when resuming, from notifications, from the IDE or using custom launchers.

They fixed this in Android 13.

@suchithm
Copy link

will only show it if launched via the default OS launcher

Even when launched from default launcher not showing full screen image. only small circle in center it shows.

@mattleibow
Copy link
Member

That is the new, "correct" behavior. Unfortunately. The android OS only allows that for now.

@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2023
This issue was closed.
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-info Issue needs more info from the author t/bug Something isn't working version/android-12
Projects
None yet
Development

No branches or pull requests

5 participants