Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Same Firebase Instance for iOS and Android app

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?

like image 954
Learn2Code Avatar asked Mar 11 '17 04:03

Learn2Code


People also ask

Can two apps use the same Firebase database?

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.

Is it possible to have multiple iOS Android and web apps under a single Firebase system?

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).

Can a Firebase project have multiple apps?

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.


1 Answers

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.

like image 66
BrandonMayU Avatar answered Oct 15 '22 19:10

BrandonMayU