3

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?

Peter Haddad
  • 78,874
  • 25
  • 140
  • 134
  • Please edit your question to be more specific about the relationship between all your apps. Are they all using the same data in the Firebase project? Do you need to send Cloud Messages to all of them at the same time? Do they have the same logged in users? – Doug Stevenson Apr 23 '18 at 15:17

1 Answers1

1

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/

Peter Haddad
  • 78,874
  • 25
  • 140
  • 134
  • Sure, but if it's different types of apps. Let's imagine one app is Instagram, another is Facebook. Should I add them to one project, or separate? –  Apr 23 '18 at 10:52
  • no seperate projects, as I said all apps in one project will have access to the same database – Peter Haddad Apr 23 '18 at 10:53
  • This doesn't really answer the question. Are there any drawbacks of putting many unrelated apps in the same Firebase project (eg. Facebook, Twitter, Reddit...), assuming that all we need from Firebase is FCM, no database? – samzmann Feb 12 '21 at 15:15
  • @samzmann see this question for instance. https://stackoverflow.com/questions/61668088/fcm-send-messages-to-topic-in-specific-app I think it can be done, but with some care and caution to not mix things up . – ahron Jul 22 '21 at 15:54