hive icon indicating copy to clipboard operation
hive copied to clipboard

Can the data be lost if the app is updated?

Open vadrian89 opened this issue 3 years ago • 2 comments

Hello,

I have an app I am working on which uses Hive for storing local data. The thing is the data stored locally is data required for login persistence, but it seems people are complaining that the users are required to sign in again after app updates.

Question So, can the Hive database be deleted when an update is installed or should it be persistent? I am trying to find out if the issue is related to Hive or something from the code.

Version

  • Platform: Android/iOS
  • Flutter version: 3.0.5
  • Hive version: 2.1.0
  • Hive Flutter version: 1.1.0

vadrian89 avatar Aug 11 '22 10:08 vadrian89

some user lost there data after updating app form store some of them not all and i couldn't know why

hassan789852 avatar Oct 02 '23 06:10 hassan789852

Since the issue I've reverted to using shared preferences.

vadrian89 avatar Oct 02 '23 07:10 vadrian89