Firebase-将多个应用程序添加到一个项目

问题描述:

这是我第一次使用Firebase.我的目标是创建一批客户端应用程序(随着时间的推移越来越多),它们全部由一个管理应用程序管理(一个应用程序来统治所有应用程序).

This is the first time i'm working with firebase. My goal is to have a bounch of client apps (more and more over time), all of them managed by an admin app (One app to rule them all).

问题是客户端应用程序具有某些内容,需要从管理应用程序中进行更新.我最好的方法是创建一个Firebase项目,将管理应用程序放置在那里,并随着时间的推移添加客户端应用程序.我读过一个Firebase项目中可能有无限数量的应用程序.另外,有人告诉我为每个客户端应用程序创建一个项目,然后以某种方式将它们连接到同一数据库.我根本不知道该怎么办.

The thing is that the client apps have a certain content that needs to be updated from the admin app. My best approach is to create a firebase project, put the admin app there and adding client apps over time. I'have read that is possible to have an unlimited number of apps inside one Firebase project. On addition, someone told me to create one project for each client app and connect them to the same database somehow. I simply don't know what to do.

哪种方法最适合我的问题?谢谢

Which would be the best solution for my problem? thank you

firebaser此处

Firebase项目当前最多可以包含30个应用程序定义.这是为了支持同一逻辑 application 的变体.例如,除了针对普通用户的应用程序外,还拥有一个Admin应用程序,和/或具有同一应用程序的iOS,Android和Web版本,例如,具有该应用程序的免费版和专业版(如果在您交付它们的商店允许的范围内.

A Firebase project can currently contain up to 30 app definitions. This is meant to support variations of the same logical application. For example, having an Admin app in addition to the app for regular users, and/or having an iOS, Android, and Web version of the same app, and for example having a free and a pro version of the app (if that is allowed by the stores where you deliver them).

将多个应用程序添加到项目中显然并不意味着将其用于白标应用程序,在白标应用程序中,您实际上将具有不同品牌的相同应用程序交付给不同的用户群,因为您将在它们之间共享后端服务.对于某些后端服务(例如数据库和存储),这不一定是问题,因为您可以使用安全规则隔离客户.但是对于其他服务(例如身份验证和分析),这是不可能的,这就是为什么不支持该用例的原因.

Adding multiple apps to a project is expressly not meant to be used for white labeling apps, where you ship essentially the same app with different branding to different user segments, as you'd be sharing the backend services between them. For some backend services (such as database and storage) this is not necessarily a problem, as you can isolate the customers with security rules. But for other services (such as authentication and analytics) this is not possible, which is why this use-case is not supported.

如果您需要在项目中为每个客户定义一个单独的应用程序,则唯一受支持的方法是为每个客户创建一个单独的项目.

If you need to define a separate app in the project for each customer, the only supported approach is to create a separate project for each customer.

我已阅读到一个Firebase项目中可能有无限数量的应用程序.

I'have read that is possible to have an unlimited number of apps inside one Firebase project.

在这种情况下,请提供一个链接,以便我们可以对其进行修复,或者(如果不在Firebase文档中)对其进行评论以澄清.

In that case please provide a link, so we can either fix it, or (if it's not in the Firebase documentation) leave a comment to clarify.