Skip to content
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

IOS on app update to a major version with same key failing to open database #110

Open
itismelito opened this issue Mar 12, 2021 · 0 comments

Comments

@itismelito
Copy link

itismelito commented Mar 12, 2021

I have an IOS app version 3.0.0 ionic 3 that uses this plugin and is using the encryption method with a password, it works fine and it does what it says but the problem happens when i update the app to a new version 3.1.0 ionic 5 database wont open with same password.

This issue happens only on IOS and only on app upgrade. Android works fine.

I have checked the path of the database which shows the same so the plugin is pointing to the same database as previous version.

This is the code i am using to access database:

{ name: "myDatabase.db", key: '123456', location: "default" }

Same code is used with new app update.

This is the messaging that logs out:

Open DB with encryption
ERROR reading sqlite master table
OPEN database: myDatabase.db FAILED, aborting any pending transactions
Could not open database

This has really blocked me pushing new app updates.

Please can anyone comment what could be the cause of this issue? Have you ever had this issue and how you solve it?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant