maui icon indicating copy to clipboard operation
maui copied to clipboard

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

Open GnanaPriyaNamasivayam opened this issue 2 years ago • 6 comments

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. https://github.com/dotnet/maui/issues/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 avatar Jan 13 '23 14:01 GnanaPriyaNamasivayam

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.

ghost avatar Jan 13 '23 15:01 ghost

Hi @mattleibow, The workaround you mentioned as a fix in the below thread, does not resolve the issue. https://github.com/dotnet/maui/issues/7289 https://github.com/dotnet/maui/issues/9794

You have also mentioned its fixed in PR https://github.com/dotnet/maui/pull/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 avatar Jan 18 '23 09:01 GnanaPriyaNamasivayam

@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.

GnanaPriyaNamasivayam avatar Jan 23 '23 14:01 GnanaPriyaNamasivayam

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

StepKie avatar Feb 27 '23 20:02 StepKie

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 avatar Feb 28 '23 18:02 mattleibow

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 avatar Feb 28 '23 18:02 ghost

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 avatar Mar 06 '23 00:03 ghost

Same issue. What is the additional information required

suchithm avatar Apr 05 '23 14:04 suchithm

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.

mattleibow avatar Apr 05 '23 23:04 mattleibow

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.

suchithm avatar Apr 12 '23 10:04 suchithm

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

mattleibow avatar Apr 15 '23 12:04 mattleibow