-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to open database on some phones, cordova-sqlite-storage version 6.0.0 #991
Comments
We have exactly the same problem on a Pixel 5. Pixel 3a and simulator working fine. Issue #954 does not solve the problem in our case. Cordova: 10.0.0 |
Update: In my case "npm i cordova-sqlite-storage@6.0.0" updated the package in node_modules, but not in the folder plugins. So i had to uninstall the plugin with cordova and then install it again with cordova: Uninstall: ionic cordova plugin rm cordova-sqlite-storage Now, finally, everything works as expected. |
@bitboxfw no luck for us on this. Same issue. |
Thanks @bitboxfw, it worked! 👍 |
Hi there, I'm facing this issue with plugin version 5.1.0 and tried using version 6.0.0 as commented in #954 But it leads to the situation which can be seen in the snapshot attached. Also tried updating cordova-android to 10.0.0, but no luck. Seeking help as stuck on this issue and have to provide support for android 11. Also, please note that this behaviour happens on signed release apk, not on debug apk. |
Same issue here using version 6.0.0 with android 11 (sdk 30) and the status is "cant open database" only on physical phones but on emulator works Ionic: Ionic CLI : 5.4.16 Cordova: Cordova CLI : 10.0.0 (cordova-lib@10.1.0) Utility: cordova-res : 0.15.3 System: Android SDK Tools : 26.1.1 (/Users/exequielcatalani/Library/Android/sdk) |
@KishanDasani Facing same issue |
I am now wondering if this may have something to do with Ionic. In general, Apache Cordova, this plugin, and other plugins expect the JavaScript to wait for the I would recommend an approach of starting with a new Ionic project and trying one thing at a time to see what does and does not work with the newer Android versions. |
I don't know if it's about the same problem, but my app couldn't connect to the database after I changed the targetSdkVersion to 30. After some heart attacks with a broken version on production (it only crashed on some devices), adding |
Hey mate, I am not seeing |
@KishanDasani I don't use ionic, but it seems irrelevant here. I'm talking about when opening the database, like this: |
Hey buddy, I replaced my |
Thank you, this solved to me. |
hello did you find any solution? the solutions above didn't work or I did something wrong -cordova-sqlite-storage@6.0.0 |
Has any solution been found? I'm having the same problem and I've already followed all the guidelines on using cordova-sqlite-storage@6.0.0 and the problem persists. When I try to use cordova-sqlite-storage@5 the DB does not open on android 11. |
I have the same problem. After some research and testing, I managed to work on my phone. But some devices keep with this issue. |
It worked but I needed to change:
|
Hi there, My issue got resolved when I modified my proguard file with some SQL classes. |
Could you show me your proguard file? I put the entire io.sqlc.** package in my proguard file and the problem continues. |
Something like this |
This works for me, thanks |
@etcho do you know if that |
I use Storage for a few strings, the solution for me was to force IndexedDB
|
But then you are not using this plugin, you are using indexeddb from the webview instead. |
Same issue. Seems to not be able to open the database when built as standalone apk and installed on an Android 14 device. Works fine when running Cordova serve android. |
Hello,
We ran into the issue: #954 a couple of months ago, but installing version 6.0.0 of this plugin seemed to fix that issue.
However, the same thing has started happening on the few devices it was happening prior to upgrading to version 6.0.0. I am not sure if there has been an Android 11 update recently that might have caused this.
"OPEN database: _ionicstorage FAILED, aborting any pending transactions"
Cordova: 10
Android: 11
Ionic Storage: 2.3.1
Cordova SQLite Storage: 6.0.0
The text was updated successfully, but these errors were encountered: