You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I have been using Hive with satisfaction for some months in apps developed with Flutter for Android without any particular problems but today I started the development of a new app for iOS and I encountered a problem: if I enable the encryption, the app crashes because it fails to open the box.
Is it enough to disable the encryption for everything to work correctly?
Has anyone had similar problems?
Hello! I also had this problem. I fixed it following this issue juliansteenbakker/flutter_secure_storage#210
There is 3 ways that I found to fix the crash on start. I applied all of them, now everything is working as expected.
The problem is with flutter_secure_storage, and not with hive...
Its very difficult to debug because, with me, I couldn't reproduce in debug or with my phone.
It looks like to only happens in release build, and with some specific phones..
The code that crash the app is this line -> final encryptionKeyString = await secureStorage.read(key: 'key');
Problem
I have been using Hive with satisfaction for some months in apps developed with Flutter for Android without any particular problems but today I started the development of a new app for iOS and I encountered a problem: if I enable the encryption, the app crashes because it fails to open the box.
Is it enough to disable the encryption for everything to work correctly?
Has anyone had similar problems?
Code sample
Version
The text was updated successfully, but these errors were encountered: