【发布时间】:2018-11-13 17:41:03
【问题描述】:
我正在构建一个带有 Firestore 集成的 iOS 应用。我设置了两个 Firestore 应用程序 - 一个用于 beta 测试 beta,第二个用于生产 prod。它们的设置相同(我假设是这样)。
当我的应用程序连接到beta 时,回调函数停止被调用。例如当我更新一个文档时:
self.firestore.collection(collection).document(id).setData(data, completion:{ (error) in
print("callback") // Never called
}
应用程序已上线,根据 Firestore 文档,应无异常调用回调。
但是当同一个应用程序连接到prod 时,上例中的回调会被很好地调用。
这是我的两个 plist,其中包含访问 Firestore 应用程序的凭据(左侧为beta,右侧为prod):
Firestore 配置中是否有隐藏的回调调用设置,还是因为我的应用逻辑?
【问题讨论】:
-
我不确定:您是否需要多个 firestore 的 blaze 计划,因为您还需要实时数据库?
-
@chronikum 在单个项目中没有“多个 Firestore”这样的东西。只能有一个,而且可以大规模扩展。
标签: ios swift firebase google-cloud-firestore