在设备上启动我的应用程序后,它只会加载预加载器,然后显示白色屏幕。但这仅发生在Android上的IOS上,一切正常。
This is the log in Xcode:
2018-11-18 15:38:01.238190+0100 SmartEye[1537:205446] Apache Cordova native platform version 4.5.5 is starting.
2018-11-18 15:38:01.239075+0100 SmartEye[1537:205446] Multi-tasking -> Device: YES, App: YES
2018-11-18 15:38:01.249803+0100 SmartEye[1537:205446] CDVWKWebViewEngine: trying to inject XHR polyfill
2018-11-18 15:38:01.305007+0100 SmartEye[1537:205446] CDVWKWebViewEngine will reload WKWebView if required on resume
2018-11-18 15:38:01.305136+0100 SmartEye[1537:205446] Using Ionic WKWebView
2018-11-18 15:38:01.306279+0100 SmartEye[1537:205446] [CDVTimer][console] 0.131011ms
2018-11-18 15:38:01.306450+0100 SmartEye[1537:205446] [CDVTimer][handleopenurl] 0.087023ms
2018-11-18 15:38:01.308654+0100 SmartEye[1537:205446] [CDVTimer][intentandnavigationfilter] 2.170086ms
2018-11-18 15:38:01.308774+0100 SmartEye[1537:205446] [CDVTimer][gesturehandler] 0.075936ms
2018-11-18 15:38:01.308877+0100 SmartEye[1537:205446] CDVIonicKeyboard: resize mode 1
2018-11-18 15:38:01.309925+0100 SmartEye[1537:205446] [CDVTimer][keyboard] 1.048923ms
2018-11-18 15:38:01.315583+0100 SmartEye[1537:205446] [CDVTimer][splashscreen] 5.586028ms
2018-11-18 15:38:01.321968+0100 SmartEye[1537:205446] [CDVTimer][statusbar] 6.287098ms
2018-11-18 15:38:01.322043+0100 SmartEye[1537:205446] [CDVTimer][TotalPluginStartup] 16.053081ms
2018-11-18 15:38:01.778979+0100 SmartEye[1537:205446] Ionic Native: deviceready event fired after 77 ms
也许是因为我使用了Cordova的ZeroConf插件,但是在文档中写明它与IOS兼容。
答案 0 :(得分:0)
在您的config.xml文件中更新这些值;
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="1500" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<platform name="ios">
<preference name="AutoHideSplashScreen" value="false" />
<preference name="loadUrlTimeoutValue" value="700000" />