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 only: hive with encryption clearing database, app includes db usage in background #1276

Open
neiljaywarner opened this issue Feb 16, 2024 · 2 comments

Comments

@neiljaywarner
Copy link

Has anyone ever experienced this? I will try to get an MVCE but i wanted to throw it out here before i forget because this is where "Get help" from the documentation went. :)

  • Encrypted with flutter_secure_storage for the key
    hive version: 2.2.3
    hive_flutter: 1.1.0
    flutter_secure_storage: "8.0.0"

from pubspec.lock

mac app uses Timer() to have db access every x minutes
iOS app uses https://pub.dev/packages/flutter_background_geolocation for db access when location changes.

@ig-garcia
Copy link

ig-garcia commented Apr 2, 2024

I did a test project and this happened to me the other way. I opened an encrypted box and stored some values, then next time I opened the box without encryption and when I check the box.values they are empty.

Is this expected in any way? I was expecting that I could check whether the db is encrypted by getting some garbage data.
Even if I open the box with encryption again, it is always empty after first time.

@neiljaywarner
Copy link
Author

neiljaywarner commented Apr 2, 2024 via email

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

2 participants