Firebase Authentication with Phone number OTP in Android Studio Tutorial

preview_player
Показать описание
If you face any problem Plz check if Your SDK contains Google Play Services or not. and also if u are able to use firebase auth successfully or not. and also check ur firebase dependency versions.

So in this video, I have created a Firebase OTP Application using Android Studio.
Using this, a user will input his number and he will get the verification code using Firebase OTP

#FirebaseOTP #FirebaseOTPAndroid

Рекомендации по теме
Комментарии
Автор

Even after reading several comments saying the code is not working, code is wrong or sms is not getting sent, I implemented the sms verification functionality using this video and its working PERFECTLY FINE if u follow the steps exactly they are shown in the video. Thank You so much for the video. SMS gets sent and it gets verified also.

mayurgonal
Автор

yes there is a small problem in the code, especially for those who wish to move to make verification in other activity or fragment.

*. problem: i use to put code required for moving to next fragment or Activity in sendVerificationSMS() function!

*. note: onCodeSent(String s, forceResendingToken) {
super.onCodeSent(s, forceResendingToken);
verificationCode = s ;}

works in background! the assigning delayed so you won't get verificationCode value if call it in sendVerificationSMS() function.


*. solution : put code required for moving to next fragment or Activity in
public void phoneAuthCredential) {

//my own function to change fragment with sliding effect ),

}

*. Note : remeber to remove code required for moving to next fragment or Activity from sendVerificationSMS() function!

JosephAli
Автор

This code working fine,
Three things u need to remember:

1. enable (On) the call authentication in the firebase.
2. Phone number in the form of (+country code mobile number, like
3. give permission for sms in your mobile.

rohitmehta
Автор

i have a question, how to check if the number is already registered

JosephAli
Автор

Syncing is not done succefully, everytime it shows some error in dependecies, please help if you can

sauravsharma
Автор

sir, i got same problem, after i verified the otp number then nothing happen.. seems signInWithPhone(credential) not work.. please help.

irfanharyanto
Автор

No error but code not sent, toast not working, where is exactly code is follow your Source Code just end of your blog but no code in the right there.

akhedy
Автор

Alright Alright Alright!!... by the way nice tutorials

casaurabhkhatri
Автор

Code not working.. no error but something is missing.. no code has been sent.

mohitgoyal
Автор

Awesome tutorial ! The Code is perfectly run but verification code is not being sent . what can I do? help me please .

mdsazzadhossain
Автор

for api level 21 lollipop device i am unable to find depandancy

tanuj
Автор

I want to move on next activity by using intent and there i want to enter my code.
Can you tell me the code for that procedure?

bilalkathia
Автор

how can we make sending an specified number as otp

Sriram-jhgr
Автор

Sir i hav done wt u said in vedio but it shows nothing in my project even not design

sahanavalli
Автор

if i took +91 by default in number what can i do?

parshwashah
Автор

Bro the code isn't sending otp???Please help

satvikmittal
Автор

Code no error but verification code not being sent? why

frankieyoong
Автор

HI, how much is your ram ? your android emulator seems to be running pretty smooth

rushic
Автор

Thanks for this tutorial.Its awesome and working perfectly.But why does the app crash if the OTP entered is wrong.

johnmabonga
Автор

signInWIthPhone(credential); this method is not working... system failled to identify.... Althought i imported firebase libraried

MuhammadHamza-wiso
join shbcf.ru