Can multiple android application access same firebase database?

后端 未结 6 519
天涯浪人
天涯浪人 2020-11-28 09:19

Is it possible for multiple android applications to access a single firebase backend. If no what is the alternative in such situation?

相关标签:
6条回答
  • 2020-11-28 09:39

    Yes, it is! a single firebase database can be access by multiple app.. provided each of your apps use the same authentication details. The Firebase documentation will be a big help. https://firebase.google.com/docs/ I have 2 of my app accessing 1 firebase database account, so, i am quite sure it will work for you my friend!

    0 讨论(0)
  • 2020-11-28 09:49

    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

    0 讨论(0)
  • 2020-11-28 09:52

    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:

    • Go to Tools and click on the Firebase option.


    • From the Firebase Assistant, select Realtime Database


    • Click on the Connect to Firebase button in the Assistant, which will show you a dialog allowing you to select an existing Database or create a new database. Click on Choose an existing Firebase project, select the Database you want to use and click on the Connect to Firebase button in the dialog.


    • Your app will automatically get connected and you will be able to access your database.
    0 讨论(0)
  • 2020-11-28 09:53

    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

    0 讨论(0)
  • 2020-11-28 09:58

    In the firebase console you’ll be having the option to connect the firebase to corresponding platform and it’s configuration. You can use that to add same firebase project to any desired platform.

    0 讨论(0)
  • 2020-11-28 10:00

    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.

    0 讨论(0)
提交回复
热议问题