Reputation: 2170
I am getting a White Screen after splash screen and then web page appears. I have configured the splash screen using cordova. Every time when app starts white screen appears for a while.
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
</feature>
preference like -
<preference name="splashscreen" value="splash"/>
<preference name="splashScreenDelay" value="10000"/>
Using above splash screen is not hiding after delay.
So I tried below way also
<preference name="AutoHideSplashScreen" value="false" />
<preference name="SplashScreenDelay" value="10000"/>
navigator.splashscreen.hide(); //call within device ready
Which hides the splash screen but getting white screen, not getting success. How can I resolve this issue.
Upvotes: 1
Views: 810
Reputation: 44516
Changing the Cordova values will not help, as they are not used.
You are probably using either a slow device, or have creatung a very large app (in which case you should question what you are doing on application startup time that takes so much time).
If you are using Worklight 6.2 and above, you can control when will the splash screen be removed, and the app displayed.
Review the Splash Screen scection in the Common UI Controls tutorial: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/advanced-client-side-development/common-ui-controls/#splashscreen
To extend the duration of the default splash screen:
autoHideSplash
option in the initOptions.js
file.WL.App.hideSplashScreen();
Upvotes: 2