I am new to android, but I have finished setting up a Firebase backend for an iOS application. Now I am starting to code the Android version which should access the same Firebase backend.
My question is this... do I need to create a new Firebase instance for the Android backend!? I was hopeful to use the same Firebase instance that I have created for the iOS application?
Yes, You can use the same firebase database in more than one android application as below: In the Project Overview section of Firebase Console add an android application.
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).
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.
If you are building an android version of the app you use the same firebase project however when you are in the console you click Overview -> 'Add Another App' -> Click 'Android'
Follow the android setup and you are all good.
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