Open mattiagalati opened 4 years ago
I am facing the same problem. The sucesss callback for the first open is not called, so the js database never change states from INIT to OPEN.
When attempt to db.transaction(fn) the message "new transaction is waiting for open operation" is raised but the fn is never called.. So the app freezes (my app initialize database on start).
I debug both js and java code. After database is open, the sucesscallback is called from java side.
Updating sql plugin does not work.
Minimal reproduction with latest version of both cordova-sqlite-storage and cordova-android platform is needed. Minimal reproduction should be a valid Cordova project with no plugins or platforms artifacts included.
Closing this issue was a mistake, just reopened.
Another thing is that the androidLockWorkaround option is now deprecated. I would like to remove it someday.
I never used the option androidLockWorkaround before and does not work either. But I updated cordova version to 7.0.1 and android cordova plugin version to 6.2.3 and everthing works fine now. My previous cordova version was 6.0.0. I had nothing to do for upgrade too. I compared the two versions and I realized the cordova changed how they sends responses to js side.
I think this problem relates to some system webview update.
My apologize @brodybits: the source code of index.js I've posted is exactly the only thing to edit after creating an empty project with cordova cli: I really don't know how to make my issue more minimal and reproducible.
Without any error to work on, we didn't found any other way than upgrade to Cordova 9.0.0, Cordova-Android 8.0.0 and plugin version 5.0.0. The problem is gone now, but at this time we have no idea of which of our applications is involved since the cause is unknown.
As mentioned by @benierm I also think that some Android Webview update caused the issue. Maybe if anyone could provide its experiences, we can discover the cause.
Hi, I can also confirm that we have had this problem, we rolled back the update applied in last 48 hours on Google Chrome & Android Webview and this got our application working again. We are also trying to work out an upgrade path to the current versions.
I have an old application built with cordova v6.5.0, and cordova-sqlite-storage v2.0.4. In the last two weeks, users says that the app hangs on init screen (where I initialize the sqlite database).
I ended up creating an empty app, with same versions, and only cordova-sqlite-storage plugin. Then, in my index.js i put this code
In the console log I see this messages:
As you can see, the database seems to open correctly, but there is no further messages (success or fails) not in console nor in LogCat.
The problem has been reported on severa devices equipped with Android 8.1, 9 and 10. The same problem occurred with more recent versions of this plugin. We don't have an iOS version of this app so can't tell if the problem occurs in iOS as well.