当苹果审核我的应用程序时,Firestore文档不存在。我不知道为什么。这是我的firestore数据库:

Firebase标尺:
service cloud.firestore {
match /databases/{database}/documents {
match /{documents=**} {
allow read;
}
}
}我试着在模拟器和我的设备上运行(使用Testflight),一切都很好。但当我向appstore提交应用程序时,apple reviewer说我的应用程序在运行时崩溃了。以下是Fabric的崩溃日志:
Document '<FSTDocumentKey: public/configs>' doesn't exist. Check document.exists to make sure the document exists before calling document.data.

我知道我可以通过检查.exist属性来修复这个问题。但我想知道我哪里错了?
发布于 2017-12-19 10:41:46
现在,我知道这里出了什么问题。安装应用程序后,审阅者会关闭互联网连接。
For Android and iOS, offline persistence is enabled by default.
第一次,评论者打开app,firestore会查询离线数据,这在这个时候是不存在的。
文档:https://firebase.google.com/docs/firestore/manage-data/enable-offline?authuser=0
https://stackoverflow.com/questions/47879224
复制相似问题