Is it possible for multiple android applications to access a single firebase backend. If no what is the alternative in such situation?
Yes, it is! a single firebase database can be access by multiple app.. provided each of your apps use the same authentication details.
However, when you want to access multiple projects from a single application, you'll need a distinct Firebase application object to reference each one individually. It's up to you to initialize these other instances.
A Firebase project can have one or more Firebase Apps registered to it (for example, both the iOS and Android versions of an app, or both the free and paid versions of an app).
Yes, it is possible. Go to your firebase console. Select home tab. Click on Add App. Select Add firebase to your Android App. Provide the necessary details for the package name. Download the latest config file and add it to all the android apps connected to this firebase project.
With Android Studio 2.2 and upwards you can easily create and add apps to you Firebase project without leaving your work environment and no need to download google-services.json
From Android Studio go to Tools->Firebase and create, add apps to project of choice :)
Guide
Yes, it is possible for multiple applications to access the same Firebase Database. From Android Studio v2.2 onwards, you can directly link an app to a Firebase database via the Firebase Assistant. Here is how to do so:
Yes, you only need to setup your Firebase object with the same url(db). Check the documentation for more. https://www.firebase.com/docs/android/guide/retrieving-data.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With