'Firebase Auth: This app is not authorized to use Firebase

My app/build.gradle:

compile 'com.firebaseui:firebase-ui-auth:2.3.0'
    compile 'com.google.firebase:firebase-auth:11.0.4'
    compile "com.android.support:design:26.1.0"
    compile "com.android.support:customtabs:26.1.0"
    compile "com.android.support:cardview-v7:26.1.0"

And in DEBUG mode I sucess auth. by Firebase Auth.

  1. Input phone number
  2. Get sms
  3. Success confirm by sms

OK. It's work fine.

But when I want to do this in release mode I get the next error:

Error_Firebase_auth



Solution 1:[1]

Add SHA1 from google play console . If you public app you must get SHA1 from your google play console and add it in firebase setting. It worked for me when i publiced my app has google sign in feature firebase. I know it too late for answer but hope it help for someone else in present.

Solution 2:[2]

Just add a SHA1 and SHA-256 into your firebase fingerprint

Step1: Run this command into your project terminal "cd .\android" and then keytool -list -v -keystore c:\Users\User_name.android\debug.keystore -alias androiddebugkey -storepass android -keypass android You will get a SHA keys Step 2: Copy those keys and add them inside the firebase fingerprint inside Project settings->users

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vi?t Huy Cao
Solution 2 Premalatha A