brianegan / brianegan/flutter_architecture_samples

Firestore listener will get dropped after long period of inactivity or app in background

Open
#192 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.