I am not understanding how to use same database for 2 apps. The second app would retrieve the data from the database and display the data order by the customers to the salesmen. The second app is used by the salesmen and the first app is used by customers.
Asked
Active
Viewed 4,283 times
1
-
See https://stackoverflow.com/questions/37874920/can-multiple-android-application-access-same-firebase-database, https://stackoverflow.com/questions/37390095/is-there-a-way-to-have-1-firebase-database-for-2-apps-with-different-package-nam, https://stackoverflow.com/questions/38108406/two-android-apps-and-one-firebase-database – Frank van Puffelen Jul 15 '18 at 03:53
1 Answers
10
Yes you can do that! You can register more than 1 Android application for 1 Firebase project.
- Go to Firebase console
- Go to your project
- In Project overview, click "Add another app"
- Set up the app just like how you set the previous app
That way, you can have 2 Firebase app accessing the same Firebase infrastructure such as, Functions, Database, Firestore, Storage.

Yosi Pramajaya
- 3,895
- 2
- 12
- 34