You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of right now, the best approach would be to interact with Firebase via its REST API, and set up a runtime caching policy to cache the data.
The Firebase Realtime API uses websockets to communicate with the server, and websockets can't be intercepted by service workers.
Offline support for the Realtime API has been attempted via helper libraries that run outside the service worker; the most robust that I'm aware of uses https://github.com/PolymerElements/app-storage to mirror the Firebase data in IndexedDB.
Library Affected:
workbox-sw, workbox-build, etc.
Browser & Platform:
Google Chrome v51.0.1 for Android, or "all browsers"
Issue or Feature Request Description:
How to precache Firebase?
When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.
The text was updated successfully, but these errors were encountered: