在Firebase中可以将一个项目用于多个应用程序的优缺点 [英] Pros and cons of using one project for multiple apps in Firebase Could Messaging

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

问题描述

在我们公司中,我们有许多适用于Android和iOS的应用程序.我们想使用Firebase进行推送通知.因此,我们需要在Firebase中为每个应用程序创建一个新的项目,还是最好在其中包含所有应用程序的情况下使用一个项目?两种方式的利弊是什么?

第一种方式:

  • App1 Firebase项目

    • App1 Android开发

    • App1 Android Stage

    • App1 iOS开发

  • App2 Firebase项目

    • .....

第二种方式:

  • 公司Firebase项目

    • App1 Android开发人员

    • App2 Android阶段

    • App2 iOS开发...

哪个更好?

解决方案

创建新项目时,它将在其中包含一个android应用程序.如果您还想为ios和/或Web创建应用程序,则需要转到概述"页面,然后单击添加其他应用程序.然后,项目中的所有应用程序都将能够访问一个数据库.

因此,最好将所有生产应用程序添加到一个项目中,以便它们可以访问相同的数据库.

如果您要创建用于测试/开发的应用程序,请按照以下说明创建另一个项目并将其添加到其中:

https://firebase.google.com/docs/configure/

In our company, we have many apps for Android and for iOS. And we want to use Firebase for push notifications. So, do we need to create new project in Firebase for each app, or will be better just use one project with all apps inside? What are pros and cons both ways?

First way:

  • App1 Firebase project

    • App1 Android Dev

    • App1 Android Stage

    • App1 iOS Dev

  • App2 Firebase Project

    • .....

Second way:

  • Company firebase project

    • App1 Android dev

    • App2 Android stage

    • App2 iOS Dev ...

Which is better?

解决方案

When you create a new project, it will have an android app inside of it. If you want to create the application also for ios and/or web, then you need to go to the Overview page and click add another app. Then all the apps inside a project will be able to access one database.

Therefore it is better to add all of the production applications to one project, so they can access the same database.

If you want to create apps for testing/development then create another project and add the apps inside of it, as specified here:

https://firebase.google.com/docs/configure/

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

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