Offline data persistence Firestore

Offline data persistence Firestore




Offline data persistence or serverless database

Offline data persistence firestore
Offline data persistence Firestore

Firestore Background

(Final stable version release on the end of 2019)
  • Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. 
  • Like Firebase Realtime Database, it keeps our data in-sync across client apps through realtime listeners and offers offline support for mobile and web so we can build responsive apps that work regardless of network latency or Internet connectivity. 
  • Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions.

Key capabilities

  • Flexibility
  • Expressive querying
  • Realtime updates
  • Offline Access
  • Scaling
Out of all the above features of Firestore today I am going to discuss the most unique and impressive feature of Firestore which is Offline Access.

Access data offline

  • This feature is supported in android, ios and web app.
  • Cloud Firestore supports offline data persistence also know as serverless database.
  •  This feature caches a copy of the Cloud Firestore data that our app is actively using, so our app can access the data when the device is offline. 
  • We can write, read, listen to, and query the cached data. When the device comes back online, Cloud Firestore synchronizes any local changes made by our app to the Cloud Firestore backend.
  • For android and ios, this feature is automatically enabled we don't have to do anything. We can disable this feature through below code.


Offline Access Demo

video src: KYO (coming soon in Playstore)

References:



No comments:

For Query and doubts!

Powered by Blogger.