【问题标题】:Using Firebase Database and Firestore both at the same time同时使用 Firebase 数据库和 Firestore
【发布时间】:2018-03-19 23:43:40
【问题描述】:

我一直在阅读有关 Firestore 的一些信息并拥有一个全球 Firebase 项目,我当然对使用 Firestore 感兴趣。

阅读此firebase vs firestore 页面,在底部他们说我们可以在同一个应用程序中使用两者...

嗯,那会很酷,但请稍等......
身份验证呢?
数据结构不同?
存储?

由于两者之间的东西不同,如何在同一个应用程序中同时使用两者?

我真的无法想象。

干杯

【问题讨论】:

    标签: android firebase-realtime-database google-cloud-firestore


    【解决方案1】:

    是的,你可以。 其实每个模块都有自己的方法:

    firebase.database() for database
    firebase.firestore() for firestore
    firebase.auth() for authentication
    

    等等……

    是的,database 和 firestore 有不同的数据结构

    【讨论】:

      猜你喜欢
      • 2020-07-24
      • 2021-01-19
      • 2019-01-10
      • 2019-07-05
      • 2021-12-25
      • 2021-10-19
      • 2018-04-19
      • 2019-11-05
      • 2019-08-07
      相关资源
      最近更新 更多