brianegan / brianegan/flutter_architecture_samples
Firestore listener will get dropped after long period of inactivity or app in background
Open
- Dominant language
- Dart
- Stars
- 8.9k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
I followed a similar design with the `ConnectToDataSourceAction` action which triggers a listener on login.
https://github.com/brianegan/flutter_architecture_samples/blob/master/firestore_redux/lib/middleware/store_todos_middleware.dart
However I noticed sometimes (haven't been able to reproduce this consistently), after long period of inactivity or app in background, this listener would get cancelled by Firestore. I think we'd need some way to re-subscribe. Have you encountered anything like this?
Contributor guide
Assessment
This issue has not been assessed yet.