FirebaseAuth SMS verification code request failed - android

I don't know what does this error mean. I've search a lot on Google, but couldn't find why am I getting this error.
E/FirebaseAuth( 5673): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17052 Exceeded quota.
I'm trying to authenticate android client with firebase phone auth sign-in method, and trying to verify their phone number by sending a verification code on their phone. No code is being sent and no callback function is called. I don't know what is the problem here
and i enable the Phone Sign-in method in your firebase
Android Device Verification is enable

Firebase limits daily SMS allowed to prevent abuse. You can refer to this other thread Firebase Authentication SMS Quota exceeded for this project

Related

Firebase Phone Authentication - OTP received but invalid

I have implemented firebase phone authentication for my mobile application based on react-native and built for android mobiles. The firebase authentication process occurs in the backend (PHP/Laravel) and works properly most of the time. However in some cases, the user registers, receives and OTP, however when inputting the OTP I get an Invalid OTP error (mismatch between the one generated in firebase and the one entered).
The process is as follows:
User registers
OTP is sent
OTP is received
OTP entered automatically on the mobile (I have tried manual input as well)
On success, the user is added to firebase (visible from the user table), and then added to the application user list in our backend
On failure (wrong OTP), the user will not be added to the firebase table and a failure response is sent to our backend and display on the mobile as "OTP Invalid"
In random occasions, we are getting an invalid OTP response even though the input is the correct one received. This is happening with new numbers registering. The same mobile network and provider is being used.
Need to check onVerificationCompleted as on android instant verification can happen which will use another method than success

Firebase Authentication via Phone Number Sign-in Service

In my application I am going with a functionality, in which i need to authorize user's mobile number via OTP.
So, for this i need to authentic mobile number via OTP Call using Firebase Service. Currently I am doing research but, not able to find any solution regarding OTP Verification via call with Firebase.
I have already implemented this functionality using Firebase Authentication phone number sign-in service with SMS verification method.
Any source/help would be appreciated.
Currently firebase does not provide OTP over call, you'll have to use only SMS OTP service or look for other OTP over call service providers like twilio or nexmo
Note: I haven't tried any of these. I just Googled for OTP over call service providers. Please search before you select one.
Firebase Authentication doesn't provide OTP call verification as of now.

Firebase Phone Auth Exception: SMS Code has expired in Android Only

I am getting an issue of Firebase Phone Auth Verification at the time of registration. It was working perfectly at all before a week but just from a week getting this exception even OTP has not expired nor session time out.
Wondering thing is that at the time of registration when I enter a phone number which is not in the entry of "Firebase Authentication User" list, OTP received on a phone number automatically detects OTP from the method of firebase itself / also tried with entering manually OTP code within 1 minute and then call to
auth.signInWithCredential(credential)
makes entry to "Firebase Authentication User" list, it means to verified successfully but at the client side, it throws an exception of "The SMS code has expired. Please re-send the verification code to try again"
This issue also came in the project's web version 1 week ago but after a day it was automatically resolved without any changes.
I checked for iOS version too but it works perfectly but just in Android only when tries to verify the OTP by auto-detection or manually, it gives this error only.
Any help would be appreciated.

Firebase Phone auth by call

Suppose I need to verify users by Firebase phone authentication.
But somehow, user is not getting otp sms. So does firebase gives the option to get the OTP by receiving call?
You can use Firebase Authentication to sign in a new user by sending an SMS message to his phone, he would then receive a verification code to his phone number via SMS which would then allow him to sign in if the code is correct. However it's not possible yet to give the user his verification code via a voice call. Maybe they will do it in a future release ? It would be great indeed !

android: firebase authentication via phone number automatically authenticates

The recently added phone authentication in firebase authenticates has two types of users on successful authentication as provided in the documentation:
Instant verification: in some cases the phone number can be instantly verified without needing to send or enter a verification code.
Auto-retrieval: on some devices, Google Play services can automatically detect the incoming verification SMS and perform verification without user action.
But I would like to authenticate the users on the basis of sending SMS instead. So how could it be resolved. And how can it be determined how the users are getting authenticated. Also in some cases if the user is already authenticated in some other device it automatically gets authenticated in some other device without sending the SMS on either of the devices.
Any help would be appreciated.

Categories

Resources