storesafe / cordova-sqlcipher-adapter

A Cordova/PhoneGap plugin to create and access encrypted databases on Android, iOS, and Windows with API similar to HTML5/Web SQL API
Other
89 stars 55 forks source link

Error open database on iOS 15.2 #114

Open fgattu opened 2 years ago

fgattu commented 2 years ago

Hi, My Ionic application used an encrypted database (created by this plugin). If the application was installed with an iOS version lower than 15.2 and then the iPhone/iPad is updated at iOS 15.2, when the application is reopened, the "openDatabase()" function fails.

The log messages are: Open DB with encryption [logging] file is not a database in "SELECT count(*) FROM sqlite_master;" ERROR reading sqlite master table ⚡️ [error] - Open DB error {"code":0}

If we uninstall and reinstall the application using iOS 15.2 version, everything will work again.

I saw that an issue about it was opened on the Apple developer forum (https://developer.apple.com/forums/thread/697001).

How can I solve the problem?

Thank you

ForamRaiyani commented 2 years ago

Hi @fgattu

I'm facing the same issue. Did you find any solution regarding this. Please let me know if any.