一个项目中有多个应用程序,或者Firebase中每个应用程序有一个项目? [英] Multiple apps in one project or one project per app in Firebase?

查看:81
本文介绍了一个项目中有多个应用程序,或者Firebase中每个应用程序有一个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我有2个Android应用程序,我想在其中使用Firebase添加通知以及广告和分析功能,因为它是免费且易于实现的.

I have, at the moment 2 android apps in which I want to add notifications and maybe ads and analytics, using Firebase, since it's free and easy to implement.

我看到我有2个选择:

  1. 使用我公司的名称创建一个新项目,并在其中添加2个应用程序
  2. 创建2个项目,每个项目都有应用程序的名称,并在每个项目上添加相关的应用程序.

哪种方法是正确的方法,为什么? 谢谢.

Which one would be the correct approach and why? Thank you.

推荐答案

并不是要轻率,而是答案是取决于":-)

Don't mean to be flippant, but the answer is "it depends" :-)

设置Firebase项目的一种典型方法是使其与逻辑应用程序"相对应,并为Android或iOS或Web版本创建单独的Firebase应用程序.

A canonical way of setting up a Firebase project is to have it correspond to a "logical app", and create separate Firebase apps for the Android or iOS or web versions.

我不会亲自将不相关的应用程序放到同一个Firebase项目中,但是您的工作量可能会有所不同.

I'd not personally put a grab bag of unrelated apps into the same Firebase project, but your mileage may vary.

根据您要执行的操作,可能可以合理地在同一Firebase项目下对相关(但逻辑上不同的应用)进行分组.但是请注意,这会影响您的应用与Firebase功能的交互方式.

Depending on what you want to do, it might make sense to group related (but logically different apps) under the same Firebase project. But note that that has implications on how your apps would interact with the Firebase features.

例如,同一Firebase项目中的所有应用程序将共享相同的逻辑Firebase数据库实例(具有相同的主机名/端点).

For example, all apps in the same Firebase project would share the same logical Firebase database instance (with the same hostname / end-point).

您可能想要遍历计划使用的各种功能,并确保组织结构满足计划使用平台功能的方式.

You would probably want to go through the various features that you plan to use and make sure that the organizational structure satisfies the way you plan to use the platform features.

这篇关于一个项目中有多个应用程序,或者Firebase中每个应用程序有一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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