What is Firebase?
Firebase is a cloud-based development platform best known for its real-time database, which is still a multi-node, key-value database specialized for synchronizing data between user computers or smartphones and centralized cloud storage. It’s made to make developers’ lives easier by taking care of a lot of the data pushing and pulling. This frees app developers from the coding headaches that come with maintaining versions and locales. They can write the updated bits to Firebase, ensuring that the data is consistent throughout the system.
Getting Firebase URL of the Realtime Database
Follow the below steps to get it in the new UI of Firebase Console:
- Go to your project in Firebase Console.
- Tap Database below Authentication and select Realtime Database (marked 1 in the picture).
- Marked 2 is the Firebase URL.
Getting Firebase URL Of The Firestore Database
- Go to Cloud Firestore tab.
- Take the ID as circled in the image below.
- Then the Firebase URL need to be formatted like this https://football-f559a.firebaseio.com.
Connecting Firebase Database on your Project
- Download the google-services.json file inside of your Firebase Project.
- Copy the file you downloaded inside your Project. Go to android >> app then paste it.
- Last is open the google-services.json file and add your Firebase URL that you get earlier on it. Save it and it will communicate on your Firebase Database.