Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elvisun opened this issue Oct 4, 2020 · 0 comments

Comments

@elvisun
Copy link

elvisun commented Oct 4, 2020

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?

@elvisun elvisun changed the title Firestore listener will get dropped after long period of inactivity Firestore listener will get dropped after long period of inactivity or app in background Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant