【问题标题】:Can I use Firestore with firebase sdk and cloud function at the same time?我可以同时将 Firestore 与 firebase sdk 和云功能一起使用吗?
【发布时间】:2020-07-07 19:45:28
【问题描述】:

对不起,我的问题中没有代码,是关于寻求建议的。

目前,我正在使用云功能将 Firestore 用作数据库。同样,我的 react-app 中的某些功能也需要实时同步。 出于安全考虑,我将 Firestore 安全规则中的所有读写更改为 false。

那么,我可以在我的 react-app 中同时使用 Firestore 直接连接到云功能吗?

【问题讨论】:

    标签: reactjs firebase google-cloud-firestore google-cloud-functions


    【解决方案1】:

    没有。如果您的安全规则不允许任何读取访问权限,那么 Web 和移动客户端将无法读取任何内容。

    【讨论】:

      猜你喜欢
      • 2021-08-23
      • 2017-08-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-04
      • 2019-08-23
      • 2019-11-18
      • 2018-05-09
      相关资源
      最近更新 更多