Closed toando0612 closed 3 months ago
Did you check out the notes at the bottom of the Android 12 section?
Did you check out the notes at the bottom of the Android 12 section?
Thank you for your response! Yes, I checked that, but it still an issue with my app. I used PNG image 1152x1152 to generate app icon as description. In addition, I built apk and release apk to physical device. I opened app many times (cold start). The problem still happen, I cannot see app icon. I am trying to check everything again and still not find solution yet, anyway, highly appreciated you supports
I have the same issue
Hi, I am also experiencing this. Was developing on a physical device running Android 12 and I could set the splash screen's background color but no matter what, the image did not appear on the splash screen. Tried an emulator running Android 13 and it works fine, image shows up. After seeing this issue, I built an Android 12 emulator and once again, no image.
My image is exactly 1152x1152 as specified, PNG with transparent background. However I tested with other image sizes and none of them showed up either on my physical Android 12 device.
Thank you.
OK unfortunately this appears to be a longstanding known issue with Android. See https://stackoverflow.com/questions/69812590/android-12-splash-screen-icon-not-displaying and https://issuetracker.google.com/issues/205021357?pli=1
The StackOverflow checked response indicates that the icon won't show when the app is launched from Android Studio but it does show if the app is launched from the default launcher. Personally this is still not working on my physical device, however I do see it working on the emulated Android 12. The emulated device is a Pixel with default Pixel launcher while my physical device is not a Pixel and runs a third-party launcher. The issue tracker also seems to indicate that some launching scenarios won't show the icon, such as launching from a notification.
Definitely annoying but it doesn't appear that this package has any ability to "fix" this issue.
Hi, I am also experiencing this. Was developing on a physical device running Android 12 and I could set the splash screen's background color but no matter what, the image did not appear on the splash screen. Tried an emulator running Android 13 and it works fine, image shows up. After seeing this issue, I built an Android 12 emulator and once again, no image.
My image is exactly 1152x1152 as specified, PNG with transparent background. However I tested with other image sizes and none of them showed up either on my physical Android 12 device.
Thank you.
@toando0612 is your issue different from the issue referenced (https://stackoverflow.com/questions/69812590/android-12-splash-screen-icon-not-displaying and https://issuetracker.google.com/issues/205021357?pli=1)? If it is the same, it is related to Android API 31, and not Flutter or this package.
@toando0612 is your issue different from the issue referenced (https://stackoverflow.com/questions/69812590/android-12-splash-screen-icon-not-displaying and https://issuetracker.google.com/issues/205021357?pli=1)? If it is the same, it is related to Android API 31, and not Flutter or this package.
Still not found solution yet, do you have any idea to fix this? I tried other images as middle app icon. It displays background color only, no app icon at all
I have the same issue :( any fixes guys?
@toando0612 please upload a minimal project the reproduces the problem so I can assist. Make sure to strip out anything proprietary or secret like API keys.
Im facing with the same issue. pls fix it
Still having the issue on android 12 notifications
Without a minimal project that reproduces the problem as requested, I cannot help resolve this problem. Closing due to inactivity. Feel free to reopen with an example minimal project that demonstrates the problem if you are still having trouble.
For everyone coming here this is what worked for me, I have a physical Xiaomi device and it is not running pixel launcher, on emulator shows the icon but in my device it doesn't.
I added the following line to the styles.xml
files inside both folders value-v31
and value-night-v31
(android/app/src/main/res/):
<item name="android:windowSplashScreenBehavior">icon_preferred</item>
I added it inside the "LaunchTheme" resource like this:
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#42a5f5</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
<item name="android:windowSplashScreenIconBackgroundColor">#42a5f5</item>
<item name="android:windowSplashScreenBehavior">icon_preferred</item> <!-- Added here --->
</style>
I see that the generator doesn't add this line so I think @jonbhanson you can add that line to the generator and that will solve the icon not being shown on Android 12+ devices running non-pixel launchers.
@toando0612 can you verify if @jkano's solution fixes your problem?
Describe the bug:
My Issue:
The result that I want:
When I run Physical Device and Emulator with Android 12. Splash Screen show, but only have background color. App icon not display.In addition, there were two results if I kill the Application and open it again: Emulator: app icon shown when open again Physical Xiaomi Device: app icon still not display, only see background color as before
-My issue currently happening on (Android 12). -Android 13 and above working OK. -Android below 12 working OK. -Only happen with Android 12
This is my flutter_native_splash.yaml:
Devices: Physical: Xiaomi 11T 12 SP1A, MIUI Global 13.0.5 Emulator: Pixel_6a_API_31 Emulator: Pixel_6a_API_34
To Reproduce