What is Firebase?

FireBase is a NoSQL Realtime Database that helps you store data of your app on Cloud without any hassle of creating and maintaining the server.

 

Some of the key features provided by Firebase are listed below:

  • Realtime Database: Store your app data and sync them in seconds.
  • Authentication: Authenticate users simply and securely.
  • Cloud Storage: Store and serve files at Cloud without worrying about scalability.
  • Test lab for Android: Test your app on devices hosted by Google.
  • Crash Reporting: Find and prioritize bugs and fix them faster using Crash Reporting.
  • Cloud Functions: Run mobile backend code without managing servers. To know more click here.
  • Hosting: Deliver web app assets with speed and security.
  • Analytics: Get free and unlimited app analytics and know your audience.
  • Dynamic Links: Drive growth by using deep links with attribution.
  • Invites: Make it easy to share your app and content.
  • Admobs: Integrate ads in your app and start earning.
  • Cloud Messaging: Send targeted messages and notifications.
  • Remote Config: Modify your app without deploying a new version to Playstore.
  • App Indexing: Drive search traffic to your mobile app.
  • AdWords: Drive installs with targeted ad campaigns.

Connect an Android app to FireBase

Today in this tutorial, we are going to learn how to connect an Android app to Firebase.

 

Step 1

If you already have an existing Android app, open it in Android Studio or create a new Android project. Open Firebase, go to the console and click on Add Project. Enter Project name and Country as shown below and then click on Create Project.

firebase-tutorial1

Step 2

Now click on ‘Add Firebase to your Android App’ and copy the package name of your app. All other fields are optional and can be left blank for now.

firebase-tutorial2

Step 3

Now download the google-services.json file and copy it to the app folder of your Android project.

firebase-tutorial3

Step 4

Copy first dependency in your app’s project level build.gradle. Now copy the second dependency at the bottom of the app level build.gradle file and click on Sync Now.

firebase-tutorial4
Step 5

If everything goes well, you will see your project added in the Firebase Console.

firebase-tutorial5

That’s it for now. In the next tutorial, we will learn how to integrate Email and Google Login using Firebase.

Related Posts

Android

Add Phone Number Authentication in Android (Firebase Tutorial #5)

This tutorial shows how to add Phone Number Authentication in Android app using Firebase. We have used FirebaseUI library for achieving authentication.

Android

Add Shimmer Effect to Android app

Rather than the same old circular loader, you can add shimmer effect to Android app when it is loading. This tutorial shows how you can add shimmer effect to your Android app.

Android

Upload an Image to Firebase Storage (Firebase Tutorial #4)

Today, I am going to show you how to upload an image to Firebase storage and then show that uploaded image in an ImageView in Android.

Subscribe and get a free eBook on 8 Tips to level up your Android Development Skills.

(We hate spam as much as you do)

You have Successfully Subscribed!

%d bloggers like this: