我的应用卡在iOS 13的启动画面中

时间:2019-10-03 06:36:38

标签: cordova ionic-framework ionic3 cordova-plugins ios13

Ionic cordova App在iOS <13和所有android上都可以正常工作。 但是在更新到iOS 13之后,它陷入了启动画面。

这是我的插件列表。

 cordova-background-geolocation-lt 2.9.1 "BackgroundGeolocation"
 cordova-custom-config 4.0.2 "cordova-custom-config"
 cordova-plugin-actionsheet 2.3.3 "ActionSheet"
 cordova-plugin-app-event 1.2.1 "Application Events"
 cordova-plugin-app-version 0.1.9 "AppVersion"
 cordova-plugin-background-fetch 5.1.1 "CDVBackgroundFetch"
 cordova-plugin-badge 0.8.8 "Badge"
 cordova-plugin-camera 3.0.0 "Camera"
 cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
 cordova-plugin-device 1.1.7 "Device"
 cordova-plugin-dialogs 2.0.1 "Notification"
 cordova-plugin-geolocation 4.0.1 "Geolocation"
 cordova-plugin-ionic-webview 4.1.2 "cordova-plugin-ionic-webview"
 cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
 cordova-plugin-network-information 1.3.4 "Network Information"
 cordova-plugin-splashscreen 4.1.0 "Splashscreen"
 cordova-plugin-sqlite-2 1.0.4 "SQLitePlugin"
 cordova-plugin-statusbar 2.3.0 "StatusBar"
 cordova-plugin-whitelist 1.3.3 "Whitelist"
 cordova.plugins.diagnostic 4.0.12 "Diagnostic"
 ionic-plugin-deeplinks 1.0.15 "Ionic Deeplink Plugin"
 ionic-plugin-keyboard 2.2.1 "Keyboard"
 phonegap-plugin-barcodescanner 7.1.2 "BarcodeScanner"
 phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
 uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

1 个答案:

答案 0 :(得分:0)

我发现我的代码有问题。我在pouchdb中使用了websql采用器。

      new PouchDB("name of the db", {adapter: 'websql'}):

结果是,Apple停止了Progressive Web Apps中对WebSQL的支持。因此,我不是使用websql,而是使用cordova-sqlite。这解决了我的问题。

      PouchDB.plugin(require('pouchdb-adapter-cordova-sqlite'));

      new PouchDB("name of the db", {adapter: 'cordova-sqlite'}):