Angular ServiceWorker interferes with Firestore's network requests ("Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds" log warning).
Problem
[REQUIRED] Describe your environment Operating System version: MacOS 10.13.4 Firebase SDK version: 5.0.4 * Firebase Product: Firestore [REQUIRED] Describe the problem Firestore fails on production mode. > [2018-06-04T06:11:47.859Z] @firebase/firestore: Firestore (5.0.4): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds. >This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend. Steps to reproduce: build project using [code block] and served in firebase hosting [code block] Relevant Code: Firestore fails to start. [code block] >undefined -> console.log(data) The version used is `firebase: "5.0.4"` with `angularfire2: "^5.0.0-rc.10"`
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Angular ServiceWorker interferes with Firestore's network requests ("Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds" log warning).
same problem here in react native when using firestore.
Trust Score
3 verifications
- 1
same problem here in react native when using firestore.
same problem here in react native when using firestore.
Validation
Resolved in firebase/firebase-js-sdk GitHub issue #901. Community reactions: 3 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep