Android OTP (Mobile) Verification Using Firebase | Part 2/2 | Authenticate | Android Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • Android OTP (Mobile) Verification Using Firebase | Part 2/2 | Authenticate with Firebase | Android Studio
    #androidprogramming #androiddevelopment #androidtutorial
    In this part 2, we will implement the facility to verify OTP (mobile) using firebase which includes,
    1) Send OTP
    2) Verify OTP
    3) Resend OTP
    For more exciting android tutorials, please subscribe to my TH-cam channel and hit the bell icon for notifications.
    Instagram:
    / chigs_kachhadiya
    android otp verification, otp verification android, firebase otp verification, otp verification firebase, android otp verification using firebase, chirag kachhadiya, kachhadiya chirag android firebase otp verification, android mobile verification, android phone verification using firebase, android phone verification, android mobile verification using firebase

ความคิดเห็น • 143

  • @naveengupta6878
    @naveengupta6878 4 ปีที่แล้ว +16

    man, you're legend. never seen such clean code in Android Tutorials.
    ALL of your videos are of premium Quality, However they require some prior knowledge.

  • @christinenjeri3272
    @christinenjeri3272 3 ปีที่แล้ว

    this one helped me a lot thanks

  • @giancarlocastilloayllon6716
    @giancarlocastilloayllon6716 ปีที่แล้ว

    please shared the code source

  • @chandrashekharreddy6759
    @chandrashekharreddy6759 2 ปีที่แล้ว +2

    If user entered wrong OTP and then user click on backspace on keyboard but cursor in edittext doesn't go on previous edittext

  • @codeupgraded6208
    @codeupgraded6208 4 ปีที่แล้ว +13

    Only this guy comes at the right time in my life... learning alot from you.. Stay bless ♥

    • @stanleyarthur3062
      @stanleyarthur3062 3 ปีที่แล้ว

      a trick : you can watch series on Kaldrostream. Me and my gf have been using them for watching loads of movies during the lockdown.

    • @aydenfisher3535
      @aydenfisher3535 3 ปีที่แล้ว

      @Stanley Arthur yup, I've been watching on Kaldrostream for months myself =)

    • @braydonnathanael4541
      @braydonnathanael4541 3 ปีที่แล้ว

      @Stanley Arthur Definitely, have been using kaldroStream for months myself :D

  • @-LutfiWirananda
    @-LutfiWirananda 3 ปีที่แล้ว +3

    Hello sir, why .getInstance() is deprecated? Thanks

    • @murthy1669
      @murthy1669 ปีที่แล้ว

      You can find the solution for that

  • @WAQARALAMLIVE
    @WAQARALAMLIVE ปีที่แล้ว

    its automatic getting logout

  • @mandarhajare7855
    @mandarhajare7855 3 ปีที่แล้ว +1

    Why does it says get instance () is deprecated plzz help im getting this error at 7:20

    • @dishan9647
      @dishan9647 2 ปีที่แล้ว

      Hey bro i need help did u fix it

  • @emmanuelssali6694
    @emmanuelssali6694 2 ปีที่แล้ว +2

    Thanks a lot!! Although when I go to the Gradle tab, I do not see any tasks within my app. How do I go about that?

  • @sreekishstrk9626
    @sreekishstrk9626 ปีที่แล้ว

    The application is crashing after clicking on verify OTP button

  • @Sahil_Lahoria
    @Sahil_Lahoria 3 ปีที่แล้ว +1

    OTP not coming

  • @niveditabakshi512
    @niveditabakshi512 ปีที่แล้ว

    Plz make the video on OTP verification using postman

  • @micjaggerpadilla3292
    @micjaggerpadilla3292 3 ปีที่แล้ว +1

    Hello sir I'm getting a error of deprecated in phoneauthprovider the getinstance and verifyphonenumber is deprecated. Any idea how to fix this error?

    • @manishsaxena2974
      @manishsaxena2974 3 ปีที่แล้ว

      click on getinstanc>click on yellow bulb>click on undeprecated.

  • @vishnusharda
    @vishnusharda 4 ปีที่แล้ว +2

    2nd like and comment 😍 because ladies 1st

  • @ShubhamSinghMusic
    @ShubhamSinghMusic 3 ปีที่แล้ว +1

    Could you please show how to implement the SafetyNet method of device verification while requesting OTP from firebase?

  • @officialjasakuy6205
    @officialjasakuy6205 3 ปีที่แล้ว +1

    can you show me the method "SetOTPInputs()" ?

  • @riccoc.6507
    @riccoc.6507 7 หลายเดือนก่อน

    Genius bro, can you upload the code files?

  • @alshmoh
    @alshmoh 2 หลายเดือนก่อน

    Can you give me the source code?

  • @sangamyadav5079
    @sangamyadav5079 3 ปีที่แล้ว +2

    "RESEND OTP" sends the same otp again, why it didn't expire after 60 seconds? Is there a way to generate new otp after timeout?

    • @wajidmukhtar63
      @wajidmukhtar63 ปีที่แล้ว

      it worked for me as in the video

  • @rupeshmandal1
    @rupeshmandal1 4 ปีที่แล้ว +1

    Hello sir, can we make video player app like MxPlayer. Show video folder by folder in recyclerView. Please♥️

  • @entertainmentdotstudio7862
    @entertainmentdotstudio7862 3 ปีที่แล้ว +1

    kindly help me brother,, This request is missing a valid app identifier, meaning that neither safetynet checks norreCAPTCHA checks successded. please try again,or check the locat for more detail..

  • @ayushisaxena6269
    @ayushisaxena6269 3 ปีที่แล้ว +1

    Sir i have one issue if a person is already registered than how he go directly to welcome/splash screen ...whats the code related to that

    • @Ankush_Sharma11
      @Ankush_Sharma11 3 ปีที่แล้ว

      same issue.. are u able to resolve it mam?? if yes, kindly tell me how u solved it..

  • @idiotgamer5452
    @idiotgamer5452 3 ปีที่แล้ว +1

    code link?

  • @shrirajchavan
    @shrirajchavan ปีที่แล้ว

    confirgration not found ka error aira hai

  • @Mini_Moment24
    @Mini_Moment24 3 ปีที่แล้ว

    dear bro,i want to videos voice...

  • @harshitsrivastava9903
    @harshitsrivastava9903 3 ปีที่แล้ว +1

    Thanks a lot..after watching many videos i got this right from here!👍👍

  • @janarthan_d
    @janarthan_d 3 ปีที่แล้ว +1

    Brother will they ask Money for each OTP They receive from us. ( Developer )

    • @ShubhamGupta-iw6hc
      @ShubhamGupta-iw6hc 3 ปีที่แล้ว

      You have 10k OTP for free in US ,Canada and in India after that you have to pay or otherwise set a fictional number and OTP then you can use that for testing.

  • @canacojenrykim5777
    @canacojenrykim5777 2 ปีที่แล้ว +1

    Thanks so much sir!

  • @numanbhati7115
    @numanbhati7115 4 ปีที่แล้ว +1

    Sir make a video on firebase remote configuration

  • @CineTalksWithAj
    @CineTalksWithAj 3 ปีที่แล้ว

    *Can You Plz Provide me source code*

  • @kyabolteho
    @kyabolteho 4 ปีที่แล้ว +1

    Thanks a lot sir. But here is a problem....
    First, shown the toast "we have blocked all requests from this device due to unusual activity."
    I also added my phone number manually for 'testing'.
    But after enter phone number in editText there is no response on GetOTP button.
    I undo all firebase process that above mentioned.
    Searched in Google but no proper response.
    Kindly help! Me🙏

    • @chiragkachhadiya
      @chiragkachhadiya  4 ปีที่แล้ว

      You can not send too many otp to a single number, i know for testing you just sent more otp codes, just try after some time or delete your login entry from firebase console.

    • @kyabolteho
      @kyabolteho 4 ปีที่แล้ว

      @@chiragkachhadiya Ok sir

  • @VersaSource
    @VersaSource 3 ปีที่แล้ว

    I have problem in sendOTPactivity in
    PhoneAuthProvider it cut my getInstance and verifyPhone Number

  • @carloseduardoontiverossoza5856
    @carloseduardoontiverossoza5856 11 หลายเดือนก่อน

    Amazing job, all the code is clear and functional, congratulations crack!

  • @EbenNana
    @EbenNana 4 ปีที่แล้ว +1

    Please do for kotlin as well. So that the kotlin developers can also benefit

  • @rowsenmatgeldiyew8722
    @rowsenmatgeldiyew8722 3 ปีที่แล้ว +1

    nice job

  • @murthy1669
    @murthy1669 ปีที่แล้ว

    Whenever the mobile number entered it says invalid formate how to rectify it

  • @Instantcrypt
    @Instantcrypt 3 ปีที่แล้ว

    Sir, when I input PhoneAuthProvider. getInstance().verifiPhoneNumber ... it shows Deprecated ..and I can't receive any message .. or app is auto stop .. sir please help me........my android version is 4.1
    this time android provides phone number authentication ...
    this code...plz sir explain a video plz sir

  • @knzdespair
    @knzdespair 3 ปีที่แล้ว +1

    can you give us the source code? thanks :D

  • @tanjimahmed7399
    @tanjimahmed7399 3 ปีที่แล้ว +1

    Thanks a lot this video helped me a lot

  • @meetable2657
    @meetable2657 3 ปีที่แล้ว

    im having
    plugins {
    id 'com.android.application'
    }
    and not apply plugin as you have. How can I add the plugin in that block?

  • @yagneshpansuriya1971
    @yagneshpansuriya1971 3 ปีที่แล้ว

    My android studio showing error when I put onverificationcompleted method

  • @snehaubbu9137
    @snehaubbu9137 3 ปีที่แล้ว

    Whats that symbol on line 66 after verificationId ?

  • @cartnshipnt4428
    @cartnshipnt4428 3 ปีที่แล้ว

    bro, but after closing the app and opening it again it logout. Please help me bro.

  • @okaygoogle8517
    @okaygoogle8517 3 ปีที่แล้ว

    Hi pls upload next video once users login in the app after they can leave the app it's directly open the home screen. Now open every time asking for login. This video continuous pls

  • @bruceomeno6530
    @bruceomeno6530 3 ปีที่แล้ว +1

    Awesome stuff. Highly appreciated!

  • @somanianands
    @somanianands 3 ปีที่แล้ว

    Hey, thanks for sharing this details video. Do we need to pay for this sms verification service? Is it free! ?

  • @ahmedchaoued9425
    @ahmedchaoued9425 3 ปีที่แล้ว

    When I click on Get OTP I never receive the SMS and the progressbar never go. SHA 1 is added and the Internet permession too

  • @MetehanBOLAT
    @MetehanBOLAT 4 ปีที่แล้ว +1

    You are the best. Thank you

  • @Ravallife
    @Ravallife 3 ปีที่แล้ว

    Internal error occurred API key is Not Valid

  • @Memotbe
    @Memotbe 4 ปีที่แล้ว +1

    ohhhh thank u soo much keep going!!

  • @gowshikm6057
    @gowshikm6057 2 ปีที่แล้ว

    how did you got the line below the edit text

  • @hopkientran2534
    @hopkientran2534 ปีที่แล้ว

    Can you give me the source code?

  • @ebisakebede5836
    @ebisakebede5836 4 ปีที่แล้ว

    Wow, thanks
    How to Add download button in recyclerView.....i already done recylerView.....please help how to Add download btn🙏🙏🙏🙏🙏one video

  • @cyberkingcapitals9839
    @cyberkingcapitals9839 4 ปีที่แล้ว +1

    Sir you are the best . Keep it up 👍

  • @kamalsaxena1384
    @kamalsaxena1384 4 ปีที่แล้ว

    Plz speak always for better understanding of code what you do

  • @voicetv9048
    @voicetv9048 3 ปีที่แล้ว

    How can i get the source code ?😂

  • @SergeyTosunyan-zb5jw
    @SergeyTosunyan-zb5jw 4 ปีที่แล้ว +1

    Great videos Sir, thank you for that.

  • @ETNewVideo
    @ETNewVideo 3 ปีที่แล้ว

    Bhai Please give us the source code of app

  • @mickey_py6252
    @mickey_py6252 ปีที่แล้ว

    Hi, don't you have the repository on Github?

  • @SaurabhGraphics
    @SaurabhGraphics 4 ปีที่แล้ว

    Hiii Sir,
    How to implement auto read OTP in firebase authentication.

  • @PARMARROHIT100
    @PARMARROHIT100 3 ปีที่แล้ว

    Please Voice Over With Explain Coading Much Easier For US
    Love You

  • @AR-ok2qt
    @AR-ok2qt 3 ปีที่แล้ว

    Bo where did you learn this ?

  • @Instantcrypt
    @Instantcrypt 3 ปีที่แล้ว

    sir when i input mobile number my app crash

  • @janarthan_d
    @janarthan_d 3 ปีที่แล้ว

    Brother once again a doubt, can i see the phone numbers which is registered if yes please tell how or if you wish make a video on it please reply...

  • @ShimpiJain
    @ShimpiJain ปีที่แล้ว

    can you please provide source code

  • @vikeshyadav8209
    @vikeshyadav8209 4 ปีที่แล้ว +1

    Achha hai

  • @ajayvarma4198
    @ajayvarma4198 4 ปีที่แล้ว

    Its completely workin bro...!!! Thank you so much..!!!

  • @assignmentunitar3392
    @assignmentunitar3392 2 ปีที่แล้ว

    Thank you so much , you just help me to solve my university assignment

  • @jeetshah6554
    @jeetshah6554 4 ปีที่แล้ว

    Intent intent = new Intent (Intent.ACTION_SEND);
    intent.setType("text/plain");
    intent.putExtra(Intent.EXTRA_TEXT, tv2.getText().toString());
    context.startActivity(Intent.createChooser(intent, "Share using"));
    Why "Share Using: is not displaying?

  • @vegaboy2003
    @vegaboy2003 3 ปีที่แล้ว

    Hi, great tutorial but it doesn't work for me, it gives me an error: The format of the phone number provided is incorrect.Please enter the phone number in a format that can be parsed into E.164 format...

  • @ismailkoyuncu5518
    @ismailkoyuncu5518 4 ปีที่แล้ว +1

    Great work. 👏👏👏✌🏻

  • @manishsaxena2974
    @manishsaxena2974 3 ปีที่แล้ว

    when I click on the" Get OTP " button 1 message pop-up-> this request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details

    • @tridev9695
      @tridev9695 2 ปีที่แล้ว

      How did you resolve this?

  • @nirmalkuttan9370
    @nirmalkuttan9370 3 ปีที่แล้ว

    bro i have one doubt

  • @ixsh8137
    @ixsh8137 3 ปีที่แล้ว

    sir, i did my app same the your code but i get the error missing a valid app identifier , meaning that neither safetyNet nor reCAPTCHA checks succeeded. plz can you help me how I can solve?

    • @PaurushBatish
      @PaurushBatish 3 ปีที่แล้ว

      bro you need to add sha1 and sha 256 keys in your firebase project settings and redownload the google-services.json file .
      This is the easiest way-
      Open Android Studio
      Open Project
      Reveal android folder
      Right click gradlew file and select Open in Terminal -
      Go to the terminal view and paste - gradlew signingReport
      Press enter and scroll to Variant debug to get the SHA1 key

  • @harsh-qr3tt
    @harsh-qr3tt 3 ปีที่แล้ว

    in how much time we recive otp

  • @chelsey7034
    @chelsey7034 2 ปีที่แล้ว

    this is my task, and u made it easy for me. thank u!

  • @ashrafmakandar3370
    @ashrafmakandar3370 4 ปีที่แล้ว

    hi please make a video on full screen intent notification

  • @quochuytran7363
    @quochuytran7363 3 ปีที่แล้ว

    you can send me file xml in your project?

  • @mohamedlaminetoure2952
    @mohamedlaminetoure2952 4 ปีที่แล้ว

    Let me tell you that your are the best android teacher.
    which version of android studio are you using ?
    4.0.1 or 3.6.1 ?

  • @lukasxzb
    @lukasxzb 4 ปีที่แล้ว

    could you make a video about playstore subscription? how do I know if the user bought the subscription and how to know if the subscription is over, thank you

  • @sultanmohdaslam7201
    @sultanmohdaslam7201 3 ปีที่แล้ว

    please provide the code link .

  • @VedicGemstoneTherapy1027
    @VedicGemstoneTherapy1027 3 ปีที่แล้ว

    We can use testing feature of firebase to accomplish OTP verification on Emulator :)

  • @kartikkitchen
    @kartikkitchen 3 ปีที่แล้ว

    Sir my app is not working

  • @murniit1328
    @murniit1328 2 ปีที่แล้ว

    Thank you so much sir, you save my day

  • @GaneshJadhav-uh7gp
    @GaneshJadhav-uh7gp 3 ปีที่แล้ว

    How can we set user logged in
    When we open this app every time we see login screen how to fix it

  • @chiragchaudhari1094
    @chiragchaudhari1094 3 ปีที่แล้ว

    Share me the code link

  • @mohammadtaqi4051
    @mohammadtaqi4051 4 ปีที่แล้ว

    How to do automatic otp verification?

  • @mahmudahmod3844
    @mahmudahmod3844 3 ปีที่แล้ว

    Bro can you please share the source code

  • @tharsheryadav6893
    @tharsheryadav6893 3 ปีที่แล้ว

    before loading the sendotp activty my app crashes
    setContentView(R.layout.activity_send_otp)
    this line above is showing error
    i m stuck here pls help

    • @ahmedchaoued9425
      @ahmedchaoued9425 3 ปีที่แล้ว

      It is
      setContentView(R.layout.activity_send_o_t_p);

  • @hudazamov282
    @hudazamov282 2 ปีที่แล้ว

    the best

  • @bryanchristopher3518
    @bryanchristopher3518 3 ปีที่แล้ว

    is it auto login or we need to sign up again?

  • @sangeeth2250
    @sangeeth2250 3 ปีที่แล้ว

    Sir I did otp verification but app stopped working
    No error in program

    • @spattas
      @spattas 3 ปีที่แล้ว

      Same problem , i get the verirification code, first time when i press verify button it takes me back to sendOTPactivity, second try app crashed, pls help
      and i have no errors

  • @germanflores3155
    @germanflores3155 4 ปีที่แล้ว

    you can make geolocation videos by imei and thanks for your videos they help me a lot!!

  • @efeeeeee212
    @efeeeeee212 3 ปีที่แล้ว

    this is video so purfect, thank you Chirag.

  • @ainanaziehah8300
    @ainanaziehah8300 3 ปีที่แล้ว

    Hi sir . for button fx u dont use onClick fx?

  • @aknowledgemachine
    @aknowledgemachine 2 ปีที่แล้ว

    Thank you :)

  • @kunying4037
    @kunying4037 3 ปีที่แล้ว

    You are great sir, thank you

  • @opensky2.020
    @opensky2.020 4 ปีที่แล้ว

    Sir Create a TomTom clone app

  • @kushalneupane8591
    @kushalneupane8591 4 ปีที่แล้ว

    I faced an issue.

  • @chetanjha6019
    @chetanjha6019 4 ปีที่แล้ว

    Bhai tu explain karna Please