user8542613
user8542613

Reputation: 755

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

Upvotes: 2

Views: 7519

Answers (3)

Premalatha A
Premalatha A

Reputation: 1

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

Upvotes: 0

Viết Huy Cao
Viết Huy Cao

Reputation: 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.

Upvotes: 0

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657308

Go to project settings

enter image description here

and at the bottom click

enter image description here

See https://developers.google.com/android/guides/client-auth for how to create the SHA1

Upvotes: 1

Related Questions