Search code examples
androidfirebasefirebase-realtime-databasefirebase-console

Pros and cons of using one project for multiple apps in Firebase Could Messaging


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?


Solution

  • 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/