isar / isar/hive

all box data is lost if app killed in background.

Open
#1,002 12 comments 4 reactions 0 assignees View on GitHub
problem
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Steps to Reproduce**

1- Initialize hive DB and open a box.
2- put some keys with values in the box.
3- after putting data into the box call `await box.close()`.
4- In Android show all open apps. and close the app window.
5- reopen the app, and all data is cleared now.

**Code sample**
```
var box = await openBox('reports');
reports.add(report);
try {
box.put('allreports', reports);
await box.close();
} catch (e) {
printLog('error; $e');
}
```

**Version**
- Platform: iOS (15.0.4) , Android (12.0)
- Flutter version: [e.g. 1.5.4]
- Hive version: [e.g. 0.5.0]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.