最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to fix while screen after splash screen in cordova ios? - Stack Overflow

programmeradmin3浏览0评论

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

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

Share Improve this question asked Jan 5, 2018 at 5:46 Farhan ChauhanFarhan Chauhan 5851 gold badge5 silver badges14 bronze badges 2
  • Possible duplicate of Cordova 3.4 iOS white screen after splash – RamblinRose Commented Jan 5, 2018 at 5:57
  • @RamblinRose thanks, but that solution is outdated and it doesn't solve my problem with xcode 9 and iPhone x. – Farhan Chauhan Commented Jan 5, 2018 at 9:01
Add a ment  | 

1 Answer 1

Reset to default 6

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.

发布评论

评论列表(0)

  1. 暂无评论