I try to fix white splash screen on my app


#1

Hello Expert ionic,
I try to fix white splash screen on my app.
Here is my config.xml file

   <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="16" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="loadUrlTimeoutValue" value="70000" />

But I am facing with issue, splash screen loading take much time to load: around 10s.

When I changed to this:

<preference name="AutoHideSplashScreen" value="true" />

Take about 3s for splash screen, but white blank about 2s.
I tried to remove all plugins, www, and node_module folder and try again. But Issue still happen.
I also tried with Lazy Loading.
Seem, we should set AutoHideSplashScreen to TRUE?
Please advice this,
Thanks.


Chelsea Lover - Ionic app
#2

About your question, I’m not the specialist about it, if that could help, my config

<preference name="SplashScreenDelay" value="2000" />
<preference name="FadeSplashScreenDuration" value="750" />
<preference name="SplashScreen" value="screen" />
<preference name="ShowSplashScreenSpinner" value="true" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="SplashReloadOnOrientationChange" value="true" />
<preference name="SplashShowOnlyFirstTime" value="false" />