ngenge
ngenge

Reputation: 157

FirebaseUi phone auth Android an unknown error occured

Need some help here. I implemented FirebaseUi phone authentication on Android and the last time when I tested on Android Marshmallow, the phone verification worked just fine but today, when I test it on Kitkat, it gives the error, "An unknown error occurred". Is there an issue with phone auth on Kitkat? How do I get around the error?

Upvotes: 3

Views: 1658

Answers (2)

KEnzo
KEnzo

Reputation: 1

Open Android Studio

Open your Project

Click on Gradle (From Right Side Panel, you will see Gradle Bar)

Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)

Click on Your Project (Your Project Name form List (root))

Click on Tasks

Click on Android

Double Click on signingReport (You will get SHA1 and MD5 in Run Bar(Sometimes it will be in Gradle Console))

Select app module from module selection dropdown to run or debug your application

this helped me :)

Upvotes: 0

Myorh
Myorh

Reputation: 609

In my case, I did not add the phone-number I was testing with in Firebase console. After adding it, you should be able to get it to work.

Firebase console screenshot

enter image description here

Upvotes: 1

Related Questions