首页 > 解决方案 > Ionic4是否支持iOS10?

问题描述

我正在尝试为所有 iOS 设备构建我的 Ionic4 应用程序。它在 iOS11 上运行良好,但我也想让它在 iOS10 上运行,所以我尝试了所有的概率。

cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview@2.3.1 --save-exact

<preference name="deployment-target" value="9.0" />
<preference name="UseScheme" value="true" />

标签: cordovaionic-frameworkionic4

解决方案


你可以试试我做的这个步骤:

  1. 将 cordova-plugin-ionic-webview 降级到 2.x (2.3/2.5)

  2. config.xml 中的更改

  3. 在 app.component.ts

    setTimeout(() => { this.splashScreen.hide(); }, 1000);

希望它会奏效!


推荐阅读