我的应用程序在 iOS 13 时卡在启动画面上

My App is getting stuck on Splash Screen in iOS 13

Ionic cordova 应用程序在 iOS< 13 和所有机器人上运行良好。 但是更新到 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"

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

      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'}):