myfirebase icon indicating copy to clipboard operation
myfirebase copied to clipboard

[RoadMap] Caching data with local storage

Open amranidev opened this issue 5 years ago • 0 comments

This issue is related to the roadmap project, if you're interested to contribute, feel free to open pull requests.

At the moment, MyFirebase is capable to cache the assets via the service worker when the app goes offline, but, It will be great if we can add a mechanisme that will cache the firestore/real-time data too, and sync it back when the app goes online.

Consider the following scenario:

0 - Sync the data with localstorage locally. 1 - The app goes offline. 2 - Get the cached data from the localstorage 3 - The user will be able to see the latest changes. 4 - The app back to online. 5 - Sync the localstorage and display the latest changes form the api.

This issue is open for discussion, feel free to comment if you have any suggestion.

amranidev avatar Feb 19 '19 21:02 amranidev