當我在iOS上運行應用程序與iPhone版本8.1,閃屏顯示,然後顯示一個空白的白色屏幕,但它完美的工作在iOS 9和iOS 10中,但不是iOS版8.應用程序顯示空白的白色屏幕在iOS 8.1
我使用wkWebView iOS和Android的人行橫道。
我離子版本:
科爾多瓦:6.4.0 咕嘟咕嘟版本:CLI版本3.9.1 咕嘟咕嘟地方:本地版本3.9.1 離子Framework版本:2.0.0-beta版。 10 Ionic CLI版本:2.0.0-beta.31 Ionic App Lib版本:2.0.0-beta.17 ios-deploy版本:未安裝 ios-sim版本:5.0.8 操作系統:Mac OS X El Capitan 節點版本:v4.4.5 Xcode versi on:Xcode 8.1 Build版本8B62
我附加了啓動應用程序時由xcode生成的日誌。
2016年11月17日14:31:58.599 MyApp的[20570:1836900]多任務 - >設備:YES,應用程序:YES 2016年11月17日14:32:03.796 MyApp的[20570:1836900 ]使用UIWebView 2016-11-17 14:32:03.804 MyApp [20570:1836900] [CDVTimer] [handleopenurl] 0.040054ms 2016-11-17 14:32:03.819 MyApp [20570:1836900]無限制地訪問網絡資源我的應用[20570:1836900] [CDVTimer] [意向導航過濾器] 2016-11-17 14:32:03.967 MyApp [20570:1836900] [CDVTimer] [splashscreen] 146.840990ms 2016-11-17 14:32:03.972我的App [20570:1836900] [CDVTimer] [statusbar] 5.607009ms 2016-11-17 14:32:03.973 MyApp [20570:1836900] [CDVTimer] [鍵盤] 0.159979ms 2016-11-17 14:32:03.973 MyApp [20570:1836900] [CDVTimer] [TotalPluginStartup] 169.110000ms 2016-11-17 14:32:05.253 MyApp [20570:1836900]重置頁面加載後的插件。 2016-11-17 14:32:08.762 MyApp [20570:1836900]成功加載:file:/// Users/3esoftwaresolutions/Library/Developer/CoreSimulator/Devices/3D72C95F-BD7C-4387-A85B-C751EC4F38B9/data/Containers/Bundle/Application/916CDBC4-4D44-4D27-8BFF-3DA9E8A0642B/My%20App.app/www/index.html 2016-11-17 14:32:08.833 MyApp [20570:1836900] THREAD WARNING:['Device ']拿了'30.730957'ms。插件應該使用後臺線程。 2016年11月17日14:32:08.977 MyApp的[20570:1836900]設備就緒解僱了544毫秒
我不明白在Xcode控制檯上的任何錯誤也是如此。
我config.xml中
<?xml version='1.0' encoding='utf-8'?>
<widget id="in.app.my" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>My App</name>
<description>An Ionic Framework and Cordova project.</description>
<author email="[email protected]" href="http://ionicframework.com/">Ionic Framework Team</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<plugin name="cordova-plugin-device" spec="~1.1.2" />
<plugin name="cordova-plugin-console" spec="~1.0.3" />
<plugin name="cordova-plugin-whitelist" spec="~1.2.2" />
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
<plugin name="cordova-plugin-statusbar" spec="~2.1.3" />
<plugin name="ionic-plugin-keyboard" spec="~2.0.1" />
<preference name="xwalkVersion" value="19+" />
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect" />
<preference name="xwalkMode" value="embedded" />
<preference name="xwalkMultipleApk" value="true" />
<plugin name="cordova-plugin-wkwebview-engine" spec="https://github.com/driftyco/cordova-plugin-wkwebview-engine.git" />
</widget>
我的問題是:如何調試這個問題? ionic2支持iOS8和iOS8.1嗎?如何使應用程序與8和8.1兼容?
要看到在Safari瀏覽器的開發者工具調試器啓動異常,需要重新加載頁面:https://stackoverflow.com/questions/36554165/cordova-white-screen-after-splash-no-exceptions-in-console – eb1