Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upstorage.get never resolves when debugging ionic app with WKWebView from MacOS Safari #160
Comments
|
I'm facing the same issue here with version 2.2.0 and cordova version 3.1.0. Ionic: Cordova: System: |
|
Same issue here Cant debug and sometimes it craps out even if I have my debugger open debugging another line in another part of the code. If the debugger ever pauses the code, theres a high chance the SQLite callbacks will break. Ionic: Ionic CLI : 5.4.5 (/usr/local/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Utility: cordova-res : not installed System: ios-sim : 8.0.2 |
My ionic app has been using '@ionic/storage' and cordova-sqlite-storage plugin combination for couple years and all seemed to be working fine until I upgraded to WKWebView.
After that, storage.get method invocations sometimes never resolves/rejects which breaks the application. This happens ONLY when debugging the ionic app built in dev mode, running on a real iOS device and using Safari from MacBook to attach to debug. Without debugging all works fine.
I played with IonicStorageModule.forRoot configuration and noticed that this problem happens ONLY when sqlite is used.
For example, the below in app.module.ts will cause the problem described above
However the below works fine (with or without debugging)
Could there be a problem with WKWebView and sqlite combination?