I try to build an messenger in wich the user should be able to login via his phone number. I set up my project in Firebase with the correct SHA-1 code and the correct packagename. But when I try to verify my phone number, I am getting this error:
This app is not authorized to use Firebase Authentication.
Please verifythat the correct package name and SHA-1 are configured
in the Firebase Console. [App validation failed]
When I start my App from Android Studio, it is working fine. But when I upload the App to the Google Play Store, it is not working. What am I doing wrong?
I am starting the verification with this code:
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setAvailableProviders(
Arrays.asList(
new AuthUI.IdpConfig.Builder(AuthUI.PHONE_VERIFICATION_PROVIDER).build()
))
.build(),
RC_SIGN_IN);
I have this library for authentication:
compile 'com.google.firebase:firebase-auth:11.0.1'
and this for the UI:
compile 'com.firebaseui:firebase-ui:2.0.1'