首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当苹果审核我的应用程序时,Firestore文档不存在

当苹果审核我的应用程序时,Firestore文档不存在
EN

Stack Overflow用户
提问于 2017-12-19 10:27:21
回答 1查看 209关注 0票数 0

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

Firebase标尺:

代码语言:javascript
复制
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属性来修复这个问题。但我想知道我哪里错了?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47879224

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档