Skip to content

I screwed up, is there anything I can do? #1329

@danielRi

Description

@danielRi

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions