Ionic 5, Capacitor 2.4 and Angular 9.1.6 splash screen issue #3368
-
Hi all, I've a problem on my Ionic 5 app that use Angular and Capacitor, the problem is that once i launch the app it shows the splash screen than for a moment the screen get white and than again the splash screen and after it loads the main page. I tried to change the capacitor confg json file with autohide: false and managing the the splash screen hide manually but it doesn't work. Any advice? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 22 replies
-
does it happen on iOS? Android? both? Capacitor versions? |
Beta Was this translation helpful? Give feedback.
-
The behaviour change between the latest android version and the previous versions |
Beta Was this translation helpful? Give feedback.
-
I use the simulators with Android version 8.1, 9.0 and 10.0+. Checking the logs i see: |
Beta Was this translation helpful? Give feedback.
-
We have the same problem as described. There is a 'white flickering' when starting the app.
There is no seemless transition from the inital splash when the app starts, to the loader that capacitor shows. Can you reproduce this behaviour @jcesarmobile? |
Beta Was this translation helpful? Give feedback.
-
I have the same issue.. after splash screen, it's stuck at white screen for a while. I tried all possible answers on github. Doesn't work with Ionic5.x, Capacitor2.x...can't remove splash screen also, this is weird and can make users annoying. Can't control. |
Beta Was this translation helpful? Give feedback.
-
I am Thinking of moving from Ionic/Capacitor to ReactNative until the Ionic core team resolves this issue clearly. No answer.. No support.. Are they care about Enterprise business ? |
Beta Was this translation helpful? Give feedback.
-
To resolve issues with SplashScreen, i put these settings in "plugins": {
"SplashScreen": {
"launchAutoHide": false,
"splashFullScreen": false,
"splashImmersive": false
}
}, And, when the application is started, I call the following method to hide SplashScreen in import { Plugins } from '@capacitor/core';
const { SplashScreen } = Plugins;
// after app initialize call:
await SplashScreen.hide(); And to solve the SplashScreen problem with its size on Android, I modify <?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
+ <item name="android:windowDisablePreview">true</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.NoActionBar">
+ <item name="android:windowDisablePreview">true</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:background">@null</item>
</style>
<style name="AppTheme.NoActionBarLaunch" parent="AppTheme.NoActionBar">
+ <item name="android:windowDisablePreview">true</item>
<item name="android:background">@drawable/splash</item>
</style>
</resources> |
Beta Was this translation helpful? Give feedback.
-
I'll be releasing a new splash screen plugin in the next few weeks that should solve all of these problems and allows complete flexibility in what you want to use as a splash screen, including animation. |
Beta Was this translation helpful? Give feedback.
I'll be releasing a new splash screen plugin in the next few weeks that should solve all of these problems and allows complete flexibility in what you want to use as a splash screen, including animation.