-
Notifications
You must be signed in to change notification settings - Fork 449
Description
Hi,
I shipped an update of my app with changes to my Hive objects that are not compatible with my users old local data (e.G. changed data type, changed data structure etc..). Some users havent updated in months and Im not sure what old data they have. Now my users getting app crashes because their old data conflicts with the new data objects of the app update. I have to tell affected users to delete their app cache/ app data or the app is bricked, which is an awful experience.
Is there a general approach how can make sure the old data is not used anymore, like increasing data base version or a onMigrate: function? I could not find anything like that in the docs.
Edit:
To make myself more clear Im getting
HiveError: Box not found. Did you forget to call Hive.openBox()
in crashlytics from users on release side but I cannot reproduce the errors.
Thanks a lot!