-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 connection delays when enables WiFi in background #5783
Comments
@shosokawa Thanks for reporting this. We have seen similar reports for Transactions (#4905) and believe that its fix (#4985) should apply to all of our networking logic. It will take me a couple of days to look at this in more detail, which should allow us figure out why the code changes for #4905 don't apply in this case. Please do bear with us. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Step 1: Describe your environment
CocoaPods
[REQUIRED] Step 2: Describe the problem
After changing a connection from 4G to WiFi in the background, it seems that it spent long time (about 20 seconds) to reconnect to the server at when the app has become active.
Some documents are created while the app is in the background, then makes the app active:
snapshotListener
isn't called until about 20 seconds afterquery.getDocuments
withFirestoreSource.server
is failed with the error:If it is called with
FirestoreSource.default
, it returns results from the cache.Steps to reproduce:
snapshotListener
called.-> After about 20 seconds,
snapshotListener
is calledThe text was updated successfully, but these errors were encountered: