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.

[Bug]: Splash screen does not display icon on Android 12

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

On a Samsung S20 FE 5G running: One UI 4.1 Android 12

When I run the app I see no image showing up on the splash screen. To double check I changed this line of code from installSplashScreen() to installSplashScreen().apply { this.setKeepOnScreenCondition { true } } and then I got these two screenshots from the splash screen, in dark and light mode respectively.

dark light
image image

Is there something I’m misunderstanding from the splash compat library, or is this a bug in the implementation in NiA? As far as I understand, for older android versions, it simply does not support animated icons, but from API 23 and onwards it should still show the icon at least.

For the record, I did also test this on a Pixel 6 Pro running Android 13 and the icon showed up perfectly fine in both dark and light mode.

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexvanyocommented, Aug 30, 2022

Agreed, it’s not a great iterative experience when trying it out from AS during the normal workflow and not seeing the expected behavior.

I don’t think NiA is doing anything incorrect here, so I’m going to close this issue in favor of the upstream ones.

Thanks again for the issue!

0reactions
StylianosGakiscommented, Aug 30, 2022

And it turns out it may not even be a dev-only bug, but a feature of AS. Really caught me off-guard tbh, was not expecting this to happen and I was certain there was something wrong in the configuration at first 🤷‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 12 Splash Screen Icon Not Displaying - Stack Overflow
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 Icon Not Displaying on API 31 when starting ...
In my testing, I found that when running the app on the emulator from Android Studio the splash screen icon is displayed for...
Read more >
New splash screen API not working in android 12 ... - YouTube
It seems there is a bug that can't resolve the vector drawable icons specified when installing the new splash screen API in android...
Read more >
A Comprehensive Guide to Android 12's Splash Screen API
Android 12 came along and a new Splash Screen API was added. By default all apps on Android 12 will show a splash...
Read more >
Splash Screen does not appear correctly in Android 12 #9707
Issue Description After upgrading an android device to android 12 or using an android 12 emulator, the splash screen image no longer appears ......
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