简体   繁体   English

cordova package iOS 应用程序显示白屏错误?

[英]cordova package iOS app shows white screen error?

Develop a mobile app with sencha touch hybrid mobile app.使用 sencha touch 混合移动应用程序开发移动应用程序。

android with Cordova package is working fine android 与 Cordova package 工作正常

when create ios app,当创建 ios 应用程序时,

There is no error, it shows a white screen in the app.没有错误,它在应用程序中显示白屏。 No error in the background also.后台也没有错误。 Emulator and device both coming white blank screen模拟器和设备都出现白屏

Something tells me you are facing a loading delay issue - i think i have ran into something similar a few years ago and now my common practice is:有些东西告诉我你正面临加载延迟问题 - 我想几年前我遇到过类似的事情,现在我的常见做法是:

Try those steps:尝试以下步骤:

  1. Create main.html file on the same level as index.html创建与 index.html 同级的 main.html 文件

  2. Copy and paste all your index.html contents to the main.html将所有 index.html 内容复制并粘贴到 main.html

  3. In you index.html paste this:在你的 index.html 中粘贴这个:

     <,DOCTYPE html> <html> <head> <title>App Title</title> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width. viewport-fit=cover" /> <script> window.location = './main;html'; </script> </head> <body> </body>

It possibly might do the trick它可能会成功

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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