Firebase

Firebase Console Setup

  1. Go to firebase console https://console.firebase.google.com/

2. Create your firebase account

3. Click on Add project

4. Enter your app name and then click on continue

5. Enable Google analytics for this project and then continue

6. Select default account for firebase, then create project

7. Your firebase project is set up

Add your App name
Select your Default Account

Google Login

  1. Click on your project, select android app [ IMAGE 1 ]

  2. Register your app by adding package name, app name and sha1 certificate [IMAGE 2 ]

  3. Then click on continue to console in the last step

  4. go to firebase console -> project overview -> project setting [ IMAGE 3 ]

  5. Copy SHA1 and SHA-256 key and paste it in the firebase project by add fingerprint and save the keys [ IMAGE 4,5,6 ]

  6. Download the google-services.json file and add this file in the app code

    Go to project directory -> android ->app

    now add your google-services.json file here

  7. Then to enable google login

  8. Go to Authentication, click on get started. Then go to sign in method.

  9. Go to google, enable the google. Add support email and then save

Facebook Login

1. Go to https://developers.facebook.com/

2. Click on get started

3. Register your app as a Developer account

4. Click on Create app and then Select Business and continue

5. Complete the details of the app and then click on create app

6. Now complete the details and use the app id in the app code at the path

project directory-> android-> app-> src-> main-> res-> values-> strings.xml

To create hash key

• Copy the command to create hash key

• Open command prompt

• Paste the command in cmd

• edit your path and then enter the keystore password used in the app code

• copy that hash key and paste it in the Key hashes column and continue

SHA1 and SHA-256 KEY

  • go to the android studio

  • open terminal and run the command as follow

  • cd android [enter]

  • then run the command gradlew signingReport [enter]

  • copy the SHA key [ SHA1 and SHA-256 ] [Variant: release ]

Last updated