如何为两个应用程序使用相同的Firebase数据库? [英] How do i use the same firebase database for two apps?

查看:31
本文介绍了如何为两个应用程序使用相同的Firebase数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不了解如何将相同的数据库用于2个应用程序.第二个应用将从数据库中检索数据,并将客户的数据订单显示给销售人员.第二个应用程序由销售人员使用,第一个应用程序由客户使用.

I am not understanding how to use same database for 2 apps. The second app would retrieve the data from the database and display the data order by the customers to the salesmen. The second app is used by the salesmen and the first app is used by customers.

推荐答案

是的,您可以这样做!您可以为1个Firebase项目注册1个以上的Android应用程序.

Yes you can do that! You can register more than 1 Android application for 1 Firebase project.

  1. 转到Firebase控制台
  2. 转到您的项目
  3. 在项目概述中,单击添加其他应用"
  4. 像设置上一个应用程序一样设置应用程序

这样,您可以让2个Firebase应用程序访问相同的Firebase基础结构,例如,功能,数据库,Firestore,存储.

That way, you can have 2 Firebase app accessing the same Firebase infrastructure such as, Functions, Database, Firestore, Storage.

这篇关于如何为两个应用程序使用相同的Firebase数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆