Firebase x Android studio | Create a firebase project + connect your android app + add SHA-1 and SHA-256 [2022]



Hi and welcome to this part. Today we gonna learn how to create a Firebase database project and connect your android app to this project.
First firebase provides many features like authentication, database ,storage... and it works with android, IOS and web apps. So it's important to learn how to use it.
The first thing you need to do is learn how to connect your app to firebase.
Create a firebase project
  • To do that first you need to create or connect your google account .
  • Then go and search for the firebase console using google or any search engine
  • Enter the first or the second link
  • Click on create new project and name it
  • wait until your project created
Connect Android studio project to Firebase project
  • Now we have create the firebase project and let's open android studio and create a new project
  • After syncing your project go on the top menu and click on Tools and choose firebase
  • Navigate to authentication from the right menu and then click on email and password authentication
  • Now click on connect
  • It may ask you to build your project (Just build it and try again)
  • Now your browser will be opened on firebase console
  • Choose your project and click connect
  • Our Android studio project is now connected to Firebase project
Add SHA-1 and SHA-256
  • Let's add our SHA-1 and SHA-256 
  • First go to firebase console and click on settings icon then Project settings
  • On the bottom you will find add fingerprint button (Click on it to add fingerprint)
  • To get our fingerprints from android studio see the video below
  • Finally add your fingerprints to your projects.
See the full video


Firebase console link

Post a Comment

Previous Post Next Post