[英]Offline persistance with cloud firestore in Android
I am using google cloud firestore to store data.我正在使用 google cloud firestore 来存储数据。 There is an option to enable offline persistance.
有一个选项可以启用离线持久性。 My requirement is to have offline support & also that data should be shown after kill & launch of app.
我的要求是提供离线支持,并且应该在杀死和启动应用程序后显示数据。
My Queries:我的查询:
Link for cloud firestore offline support documentation https://firebase.google.com/docs/firestore/manage-data/enable-offline Cloud Firestore 离线支持文档的链接 https://firebase.google.com/docs/firestore/manage-data/enable-offline
Yes, that's how it works.是的,它就是这样工作的。 Data written while offline is persistent on the device.
离线时写入的数据在设备上是持久的。 That's why it's called "offline persistence".
这就是为什么它被称为“离线持久性”。
Yes, that's how it works.是的,它就是这样工作的。 It will retry all writes until fully synchronized.
它将重试所有写入,直到完全同步。
These are things you should be able to try on your own fairly easily.这些是您应该能够相当容易地自行尝试的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.