image does not appear when you start the application with android 12 api 32
Describe the bug
The image does not appear when you start the application from scratch, however when it is started using the application icon the image appears normally, this only happens when I use the Pixel 8 with Android 12 API 32, versions below 12 and above 12 the image appears normally.
Configuration
flutter_native_splash:
android: true
ios: true
web: false
color: "#0F80B9"
image: assets/splash/seo_mercato_1152_1152.png
image_dark: assets/splash/seo_mercato_1152_1152_dark.png
color_dark: "#121212"
android_12:
color: "#0F80B9"
image: assets/splash/seo_mercato_1152_1152.png
image_dark: assets/splash/seo_mercato_1152_1152_dark.png
color_dark: "#121212"
Device (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
Screenshots
starting first time
after already started
Additional context Add any other context about the problem here.
I am facing this problem as well. Image logo won't show when application is first launched after install.
@pedroprenhaca are you sure you are having this problem with API 32? There was a problem with API 31 (which is also Android 12), but I am not aware of any problem on API 32.
@jonbhanson Redmi Note 13 device (Xiaomi HyperOS, Android 14)
@jonbhanson yes, I did several tests and there is a problem with api 32
@jonbhanson Samsung Galaxy A23, Android 14, One UI 6.1
Guys, it's probably not the cell phones that are having problems, but rather API 32. Try downloading the same cell phones with API 33 or 31 to test.
@pedroprenhaca My device is using API 33. It's not the phone, I believe that also. I tested it on few more devices.
Add this line to your styles.xml file:
<item name="android:windowSplashScreenBehavior">icon_preferred</item>
It is a new setting added in Android 13. More information: https://developer.android.com/develop/ui/views/launch/splash-screen
I think the package should be updated to reflect this.
I found that this problem occurs on Android 12 after running through the launcher, such as android studio. However, if the apk is installed through adb install, the launch icon can be displayed normally for the first time.
Hello, this is happening even in real device. I tried with the above possible solution but for me is not working. Any updates on this ?
I am also facing this problem. When the application is first launched after installation, the image logo will not be displayed. The follow-up is normal