[Solved] Splash screen blank

Ok, same here with latest ionic, maybe a problem with the ionic resources command ?
This is really mandatory, we don’t want to add manually our assets for slpash/icon :confused:

But, for all other, you have the res folder on root of project after use the command, and so just drag it to android res build folder to update splash/icons.

there are github issues for that:

its worked for me .but before i tried

  1. cordova plugin remove cordova-plugin-splashscreen
  2. cordova plugin add cordova-plugin-splashscreen

but no luck

1 Like

Hi

You would be requiring the download the latest resources for API level 25.

for me issue is fixed.

Hi, Pankaj. I’m having the same issue - getting white blank screen. Please let me know what needs to be update or the link?

At the same time I’m getting this error…

Application Error!

Anyone have solution? Thanks!

Please try this

cordova platform rm android
cordova platform add https://github.com/apache/cordova-android.git#master

and after that in config.xml file write

Currently u can use

<preference name="loadUrlTimeoutValue" value="700000" />

to avoid application error.

How to avoid White Screen problem?

  1. Splash displayed.
  2. Keeps on displaying White Screen :frowning:
1 Like

Sry Ankit …

I tried with the previous vession too. You dont need to update the cordova to master.

add these to your config.xml.
<preference name="loadUrlTimeoutValue" value="60000" />
<preference name="AutoHideSplashScreen" value="false" />

if still you are facing issue then please share your config file.

1 Like

Thanks! ‘loadUrlTimeoutValue’ worked!

Hi pankajsoni, the white screen between the splash screen and main page is disappeared but It will take 17 sec to load then see the main page. I use the following command “ionic start testApp tutorial --v2”. why does it take so long to load? did I miss something to add?

1 Like

Hi

Currently there is no fix as of now.
Once lazy loading comes into picture then it will solve the same problem.

hello, how do you fix the license Google Repository, SDK Patch Applier v1 ??? i have the same error …

This worked for me:
mv platforms/android/res/{values,xml} res
rm -rf platforms/android/res
cp -r res platforms/android
ionic build android

weird that it does that by default. This is the exact issue I was encountering

Most of the solutions here don’t really solve my but this …

`
ionic platform remove android
ionic platform add android

ionic resources android
ionic build android

and
config.xml have this:

preference name=“SplashMaintainAspectRatio” value=“true”/>
preference name=“FadeSplashScreenDuration” value=“300”/>
preference name=“SplashScreen” value=“screen”/>
preference name=“AutoHideSplashScreen” value=“false”/>

plugin name=“cordova-plugin-splashscreen” spec="~4.0.1"/>

and

app.component.ts

platform.ready().then(() => {

this.hideSplashScreen();

});

hideSplashScreen() {
if (Splashscreen) {
setTimeout(() => {
Splashscreen.hide();
}, 100);
}
}
`

Thanks it work perfectly…

thanks, this work for me…
i used newer version

@pankaj: I am also getting same issue taking long time to load main screen after splash. Can you please help me asap.