-
Notifications
You must be signed in to change notification settings - Fork 225
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 #506
Comments
As noted in the Android 12 section of the readme,
I suspect the problem is with a Samsung launcher on Andrdoid 12. Try launching in an emulator so that you are using the Google launcher. Don't launch it by running it from Android studio, but actually open the launcher in Andriod and launch by tapping the app icon. If the splash is correct, you will know that the problem is with the Samsung launcher. |
Thank you for your answer. I'll try to do more tests. but if I remove the Android12 declaration, when run flutter pub run flutter_native_splash:create again, it is not eliminating the line referring to Android 12, from the files tks |
same here using android 12 |
FILE SETTINGS flutter_native_splash:
color: "#3A4F62"
image: "assets/splash.png"
android: true
ios: false
android_gravity: fill
android_12:
color: "#15B347"
image: "assets/android12splash.png"
icon_background_color: "#952727" FLUTTER AND PACKAGE VERSION: |
Finally after spending hours searching, I found the solution. I remembered that I had an older version of the app where the splashscreen worked without any problems. I found a difference in the android/app/src/main/AndroidManifest.xml file, the worked version, has some lines, that does not exist in a new version. See below.
|
@paulobreim glad to hear you got it working. |
it is a bug's flutter or we will need to do it everytime? |
I don't know why adding that line back in made it work. According to Flutter's docs, that line should be removed in Android 12. |
@paulobreim Thank, It work. |
#506 (comment)
|
It was big hint. Great appreciate! |
@dai10512 @arno608rw @paulobreim do you have |
Same problem here but removing SplashScreenDrawable is part of the migration to Android 12... https://docs.flutter.dev/development/platform-integration/android/splash-screen-migration That solution is strange... it is also specified that it could cause some crashes. Or am I missing something? |
Do you mean this part?:
I understand this to mean that you should delete the
Were you able to solve the problem by following the migration guide? |
Yes. And that's why that solution seems strange to me.
Nope. My app was already correct, there is neither provideSplashScreen, nor SplashScreenDrawable but at first start after install, no Launch Image is showed. |
I did another test and it seems to me a problem related only to launching the application from Flutter (flutter run) and only on Android 12 devices. In fact I tried to: The launch screen is always shown, even on first startup. |
@paulobreim It works for me, thanks |
I have spent nearly 6 hours searching for a solution. |
Hi friends,
My app doesn't show splashscreen on Android 12.
I have a galaxy S10E and I used the following configuration:
The color #3A4F62 is displayed as the background and the default icon appears.
========================
In a second test, I just comment the specifications for Android 12
and... may be I found a new bug:
And when I compile I got this error
Looking the values-v31/styles.xml and values-night-v31/styles.xml we have
========================
What am I doing wrong?
Thank you
Paulo
The text was updated successfully, but these errors were encountered: