【问题标题】:My App is getting stuck on Splash Screen in iOS 13我的应用程序卡在 iOS 13 的启动画面上
【发布时间】:2019-10-03 06:36:38
【问题描述】:

Ionic cordova 应用程序在 iOS

这是我的插件列表。

 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"

【问题讨论】:

  • 能否请您从 Safari 设备控制台查看日志
  • 错误:未捕获(承诺):错误:无效适配器:websql PouchDB@ionic://localhost/build/vendor.js:86083:20 ionic://localhost/build/main.js :3043:65 Storage@ionic://localhost/build/main.js:3035:22 DocStorage@ionic://localhost/build/main.js:3186:32 LogStorage@ionic://localhost/build/main。 js:7796:32 ionic://localhost/build/main.js:11992:106 ionic://localhost/build/main.js:10675:42 onInvoke@ionic://localhost/build/vendor.js:5105 :39 ionic://localhost/build/polyfills.js:3:10149 ionic://localhost/build/polyfills.js:3:20245 onInvokeTas .....
  • 您是否使用任何本地数据库插件进行离子?
  • 是的。我正在使用 PouchDB

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


【解决方案1】:

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

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

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-06
    • 1970-01-01
    • 2020-05-12
    • 1970-01-01
    • 2021-06-10
    • 2016-09-17
    • 2018-07-17
    相关资源
    最近更新 更多