Rectangle 27 0

android Is there a way to have 1 Firebase database for 2 apps with different package names?

I wonder if it's a new feature of Firebase 9.0.0 to add 2 (or more?) apps under one project? Or maybe it's still against their Terms of Service and they will disable it in the future?

If you have some reason why you can't add them both to the same project, you will have to configure at least one of the apps manually in client side code. So rather than using the google-services.json file for configuration, you can call FirebaseApp.initializeApp() manually and fill in the information so both apps are talking to the same Firebase project.

Thank you so much! Though I didn't have to use FirebaseApp.initializeApp(), the information which you gave that another app can be added helped me. Thanks!

Very helpful post, thank you! My need is the same as the person who posted: 1 app for posting data, 1 app only for fetching data.

Yes this is possible using the Firebase console. You only get one database per project but you can have many apps per project just by adding them in the console. They don't need to have the same package name or signing key.

Yes. It's a new feature of Firebase 9.0.0.