You just need to upload the APK and can choose between lots of real devices. You could use 30 Mintues for free at using a real remote device. I may need a some time to obtain an Android 11 device for further testing. I am able to use the buttons to add record and show record count still with no problems on an Android 11 emulator. References having the same problem, just by initializing the DB and read some data.Įverythinkg worked fine before SDK30 / Android 11. Summing up, this hotfix will enable the usage of the default Android database provider for Android 11 only,īy setting the `oldImpl` to `true`, which is the same behaviour of using the `androidDatabaseProvider: 'system'` Where the SQLite is unable to open the database file using native C primitive `sqlite3_open_v2`:Ĭausing the handler to crash with a NullPointerException when throwing an exception
The issue was already reported brodybits/cordova-sqlite-storage-dependencies#3įrom what I was able to understand, it is related with the permissions changes on Android 11, In place of the 2 we tried 1, 3, 4, default, library, databases, /data/data//my_db.db data/data//my_db.sqliteĪlso tried in the formats like SQLite.openDatabase(, this.openCB, this.errorCB) Ĭonsole.warn('Failed to touch the db file', err)Ĭonsole.The current version of the plugin is not able to open databases when targeting the SDK 30 Any ideas on how to debug this? These are only a small subset of what I tried SQLite.openDatabase(Ĭonsole.log("OPEN DATABASE ERROR : " + error) I have tried every possible combination I can think of and it always just returns failed to open database. Every device we test SQLite.openDatabase on works fine except galaxy s10.