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

Android 14 does not display the startup page for the first time #710

Open
parshvas1515 opened this issue Jun 24, 2024 · 1 comment
Open

Comments

@parshvas1515
Copy link

parshvas1515 commented Jun 24, 2024

Hello

  • I'm facing same issue when using native splash and run app in dev mode with opening from android studio or taping from launcher icon all time icons shows .
  • When creating relase apk at the very first time it will not show icon it will show only background color and if lunch latter on it will show the splash below is the code snippet for same
flutter_native_splash:
  color: "#FFFFFF"
  image: assets/image/ic_splash_icon_new.png
  color_dark: "#FFFFFF"
  image_dark: assets/image/ic_splash_icon_new.png
  android_gravity: center
  android: true
  ios: true
  image_ios: assets/image/logo.png
  image_dark_ios: assets/image/logo.png
  web: false
  android_12:
    color_dark: "#FFFFFF"
    icon_background_color: "#FFFFFF"
    image: assets/image/ic_splash_icon_new.png

Originally posted by @parshvas1515 in #521 (comment)

@Bojan227
Copy link

Same here, im using firebase app distribution in order to test the app but after the first installation the splash logo doesn't appear, it's just the background color.

flutter_native_splash:
  image: "assets/images/android12splash.png"
  color: "#4308B5"
  android: true
  fullscreen: false
  ios: true
  web: false
  android_12:
    image: "assets/images/android12splash.png"
    color: "#4308B5"

style.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowBackground">"@drawable/gradient_background"</item>
        <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">#4308B5</item>
        <item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.
         
         This Theme is only used starting with V2 of Flutter's Android embedding. -->
    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowBackground">"@drawable/gradient_background"</item>
    </style>
</resources>


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

2 participants