jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.32k stars 211 forks source link

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

Open longnh2k1 opened 2 months ago

longnh2k1 commented 2 months ago

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

https://github.com/jonbhanson/flutter_native_splash/assets/153590374/1cdfe981-af52-41be-9ec6-7b67101df5c1

Thanks for supporting me.❤️‍🔥

jonbhanson commented 1 month ago

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

longnh2k1 commented 1 month ago

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

dipak-pd commented 1 month ago

I'm also getting black screen on app start

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

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