简体   繁体   中英

How to fix while screen after splash screen in cordova ios?

While developing cordova app, I notice white screen after the splash screen and before html page.

Is there any solution to get rid off white screen?

I am facing this issue in iPhone app, I have used cordova helloWorld app so this issue is not related to plugins.

Cordova v7.0.1

You are probably facing the same issue I was facing a while ago. Start off by not auto hiding the splash screen. Instead hide it on "deviceready".

To stop autohiding splash screen add the following line to config.xml

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

To manually hide splash screen add the following inside the deviceready event in your entry point( probably index.html or the js file you are using in it for app namespace )

navigator.splashscreen.hide();

For more information, head to cordova-plugin-splashscreen documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM