Where can I find a link to a Firebase link in a Firebase account?

In the third and last line of the code below, how can I find the firebase url. I can not find him. Can someone provide me a better link on how to setup facebook facebook account using android.

public void saveUser() { //Add YOUR Firebase Reference URL instead of the following URL Firebase myFirebaseRef = new Firebase("https://androidbashfirebase.firebaseio.com/"); //<---- How to find this myFirebaseRef = myFirebaseRef.child("users").child(getId()); myFirebaseRef.setValue(this); } 
+15
source share
6 answers

You should have done the search yourself. Where are you,

  1. Open Firebase Console

enter image description here

  1. Select your application and go to the database by marking the link you need.

enter image description here

For updated user interface

Follow these steps to get it in the new Firebase Console user interface:

  1. Go to database section
  2. Click Cloud Firebase (marked 1 in the figure) and select the Live Database
  3. Marked 2 is URL

enter image description here

+16
source

When you create a Firebase database, it will be created with a unique URL ending in firebaseio.com . Database URL is in the format:

 https://<PROJECT_ID>.firebaseio.com/ 

What you want to do is go to the Database tab, switch from cloud storage (beta) to the real-time database using the select button. You can see the URL of your database, as shown below:

enter image description here

Hope this helps!

+9
source

NOTE : Same for the old and new Firebase user interface.

  1. Go to the authentication tab and press the WEB SETUP button at the top right of the screen. enter image description here

  2. Now you will see an open dialog box, you can see many information fields in it and you can also see the databaseUrl field, this is your required field. enter image description here

+6
source

If you haven't created a Firebase account yet, just create one first. Go to the console and add a new application if it is not added. If you already have an application, just click on it and go to the toolbar.

In Dashboard, click on Database and you will see the URL for the Firebase link there. See below screenshot

Firebase Reference URL

I hope this helps you.

+5
source

Update : The firebase user interface has been changed, so follow the instructions below.

enter image description here


enter image description here


enter image description here

+2
source

As Niraj Chand said: β€œCurrently there are two types of databases based on firebase - firestore and Realtime Database. If you are in firestore mode (by default), then you may not find the URL directly for the database. Switch to the database real-time data from the blue drop-down list at the top and you will get the url, see this image

-1
source

Source: https://habr.com/ru/post/1258580/


All Articles