Skip to content
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

Black screen when entering an application pushed to Google Play Store #712

Open
longnh2k1 opened this issue Jul 4, 2024 · 6 comments
Open

Comments

@longnh2k1
Copy link

I got a black screen when entering the app on Android 11, but before that the release and debug builds were normal, but when I uploaded the app to the Google Play Store, that error appeared.

Here is my configuration and I didn't do anything else:

flutter_native_splash:
  image: "assets/images/splash/LOGO_SPLASH.png"
  background_image: "assets/images/splash/BG_SPLASH_MOBILE.png"
  branding: "assets/images/splash/BRANDING.png"

  android_12:
    color: "#ffffff"
    image: "assets/images/splash/ANDROID12_LOGO_SPLASH.png"
    branding: "assets/images/splash/ANDROID12_BRANDING.png"
  web: false
0704.mp4

Thanks for supporting me.❤️‍🔥

@jonbhanson
Copy link
Owner

If you generate an APK and sideload it onto an Android device, bypassing the Play Store, does the splash screen display correctly?

@longnh2k1
Copy link
Author

When I build the apk it works fine, only when I push it to Google Play it gets a black screen.

@dipak-pd
Copy link

I'm also getting black screen on app start

flutter_native_splash:
  color: "#ffffff"
  color_dark: "#ffffff"

  android_12:
    color: "#ffffff"
    color_dark: "#ffffff"

@TJMusiitwa
Copy link

Hey @jonbhanson I too have just very recently started to get this same issue mainly on Android. iOS does not raise the issue.

Below is a copy of the logs when running the app on either debug or profile on a physical device

✓ Built build/app/outputs/flutter-apk/app-profile.apk (39.7MB)
E/AndroidRuntime(16259): FATAL EXCEPTION: wmshell.splashworker
E/AndroidRuntime(16259): Process: com.android.systemui, PID: 16259
E/AndroidRuntime(16259): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.draw(android.graphics.Canvas)' on a null object reference
E/AndroidRuntime(16259): 	at com.android.wm.shell.startingsurface.SplashscreenIconDrawableFactory$AdaptiveForegroundDrawable.draw(qb/86311146 a982e1cc43cc24626999ad7f15d99b1b844bce33646868d28d69453e901c655d:6)
E/AndroidRuntime(16259): 	at com.android.wm.shell.startingsurface.SplashscreenIconDrawableFactory$ImmobileIconDrawable.preDrawIcon(qb/86311146 a982e1cc43cc24626999ad7f15d99b1b844bce33646868d28d69453e901c655d:31)
E/AndroidRuntime(16259): 	at com.android.wm.shell.startingsurface.SplashscreenIconDrawableFactory$ImmobileIconDrawable$$ExternalSyntheticLambda0.run(qb/86311146 a982e1cc43cc24626999ad7f15d99b1b844bce33646868d28d69453e901c655d:23)
E/AndroidRuntime(16259): 	at android.os.Handler.handleCallback(Handler.java:958)
E/AndroidRuntime(16259): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(16259): 	at android.os.Looper.loopOnce(Looper.java:230)
E/AndroidRuntime(16259): 	at android.os.Looper.loop(Looper.java:319)
E/AndroidRuntime(16259): 	at android.os.HandlerThread.run(HandlerThread.java:67)

My pubspec file definition

flutter_native_splash:
  android: true
  ios: true
  web: false
  color: '#FFFFFF'
  image: cu_graphics/icon.png
  android_12:
    color: '#FFFFFF'

Let me know what you propose as a solution

@TJMusiitwa
Copy link

@jonbhanson Please ignore turns out not an issue with this package but with the launcher icons package where there is a PR awaiting to address the issue causing this.

@jonbhanson
Copy link
Owner

@longnh2k1 is this also the cause of your trouble?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants