Flutter Firebase Phone Number OTP Authentication - Flutter Firebase 2023

Поділитися
Вставка
  • Опубліковано 10 вер 2024

КОМЕНТАРІ • 147

  • @Mustafa-jy8el
    @Mustafa-jy8el 10 місяців тому +7

    I love tutorials that start with the demo at the start of the video, allowing viewers to immediately understand whether this is the right video for them. And it definitely was- thank you brother.

  • @user-yo6mq9rm7h
    @user-yo6mq9rm7h Рік тому +2

    Help me pls, I can't find Android Device Veritification in google cloud.

  • @jyotibaruah1085
    @jyotibaruah1085 Рік тому +5

    Android device verification is deprecated so im facing problem while trying for otp verification. So please help what to use instead of ADV.

    • @jyotibaruah1085
      @jyotibaruah1085 Рік тому

      Thank you so much❣️❣️❣️

    • @mawandenxumalo4901
      @mawandenxumalo4901 Рік тому

      It is now called Integrity API

    • @ali-sojib
      @ali-sojib Рік тому +1

      @@CodingwithT sir there is no PhoneAuthOptions type in flutter ?

    • @matheusmelo4862
      @matheusmelo4862 9 місяців тому

      any solution?

    • @madhurtyagi803
      @madhurtyagi803 7 місяців тому

      I am also facing the same issue how did youu resolved it?

  • @mrtaimoorsikander
    @mrtaimoorsikander Рік тому

    You saved me brother. Thnk you so very much T. I was wondering here and there for phone OTP then I finally landed at your tutorial and after this I not just watched complete playlist but purchased the code and want to thank you for saving me. Kepp up with great content.

    • @CodingwithT
      @CodingwithT  Рік тому +1

      Thank you bro. I'm glad to be helpful 😊

  • @inshirakhan1367
    @inshirakhan1367 Місяць тому

    Hey it's very urgent. Kindly help
    So I got a project and there is an issue. First time jab mein na app run ki to login was working for OTP and captcha check but us Ka bad jab bi new run Kiya or any thing the OTP and captcha is not working. Sometimes it says it's internal error sometimes it says nothing but didn't register new user. Kindly help m

  • @manarbajafar3700
    @manarbajafar3700 9 місяців тому +2

    "android device verification" change to "Google Play Integrity API" ????

    • @dreamy4174
      @dreamy4174 16 днів тому

      Yes android device verification is not working can u tell what to do I'm getting error

  • @omarrzgarrasheed7711
    @omarrzgarrasheed7711 Рік тому

    very useful tutorial thank you my brother
    jazak allah xaira

  • @terdoomzer
    @terdoomzer Рік тому +1

    I am happy to see this! Well done Sir!

  • @Nobisuke
    @Nobisuke 8 місяців тому

    i face some problem on ios. its not working on IOS but working fine on android, cdid i missed some configuration?

  • @lohithyadav497
    @lohithyadav497 Рік тому +1

    Hello im not getting SHA1,i running the all the commands in cmd but its showing for ,can you please solve it.

  • @imranaziz574
    @imranaziz574 Рік тому +1

    Very superb tutorials Sir, i have learned many things, but there are 16 videos only till OTP verification remaining videos not added in this playlist?

    • @CodingwithT
      @CodingwithT  Рік тому

      Thank you 😊. There are a few tutorials still left and underway 😃.
      They will be created in a few days.

  • @ashwinth
    @ashwinth 7 місяців тому +1

    I am getting a Failed to load page when trying to verify android device. Anyone else faced this issue ?

  • @techfauz
    @techfauz 2 місяці тому

    Is this service free?
    I thought OTP authentication won't send sms for testing

  • @samuelyao2637
    @samuelyao2637 Рік тому +1

    Please Sir android device verification is no longer available. How do I use Play Integrity API for OTP authentication?

    • @CodingwithT
      @CodingwithT  Рік тому +1

      I will try to create a separate video on it but meanwhile you can go through docs, it's easy

  • @abdelkouddoushamel3827
    @abdelkouddoushamel3827 Рік тому

    You are the best man, thanks so much for your your help!!

    • @CodingwithT
      @CodingwithT  Рік тому

      Thank you. I'm glad you like it 😊

  • @user-bv2cn4lp1c
    @user-bv2cn4lp1c Рік тому

    Superb tutorial brother, very detailed. There is an issue I am facing:
    SMS verification code request failed: unknown status code: 17028 A safety_net_token was passed, but no matching SHA-256 was registered in the Firebase console. Please make sure that this application’s packageName/SHA256 pair is registered in the Firebase Console.

  • @hafidznaqiuddin5076
    @hafidznaqiuddin5076 Рік тому +1

    keytool : The term 'keytool' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    what this problem?

    • @CodingwithT
      @CodingwithT  Рік тому +1

      Is it resolved? There could be many reasons but make sure the directory is in your PATH env variables

    • @emmanuelkimutai-uo2fx
      @emmanuelkimutai-uo2fx Рік тому +1

      you can do this. Switch to android in your terminal cd android. Then run the following command .gradlew signingReport

  • @user-xq4mk3eg9f
    @user-xq4mk3eg9f Рік тому +1

    I bought the package and I'm really enjoying the tutorials! I'm having an issue here. The SMS text is never received. The Run log shows - W/FirebaseAuth(26995): [SmsRetrieverHelper] Timed out waiting for SMS. I confirmed that Google Play Integrity API is enabled (since Android Device Authentication API is no longer available). The recaptcha webpage briefly appears and goes away, but the SMS never shows up and I can't sign in. Any suggestions?

  • @gauravbhosle2167
    @gauravbhosle2167 Рік тому +1

    how can we show error messages on screen? for eg;- we got error invalid-phone or invalid-email so we have message corrosponding to this error in our exception directory but how can we show that msg on screen while authenticating on login screen.

    • @CodingwithT
      @CodingwithT  Рік тому

      You can directly call Get.showSnackBar() & pass error in it and you are good to go.

    • @aafaqadeel5585
      @aafaqadeel5585 4 місяці тому

      ​@@CodingwithT The Android device verification appears to be unsuccessful, bro.

  • @oneebkhan4453
    @oneebkhan4453 Рік тому +1

    Great Tutorial. Any chance you show how to do the iOS part? I can't find any tutorials at all. Most of them outdated even if I find one.

  • @JunaidAnsari-kj2oh
    @JunaidAnsari-kj2oh Рік тому +2

    Bro please make a video on how to make a payment method activity in android studio...pleasee...

    • @CodingwithT
      @CodingwithT  Рік тому +1

      Good suggestion 😃. I'll create that soon

    • @abrahemgh1002
      @abrahemgh1002 Рік тому

      @@CodingwithT still waiting :)

  • @user-bc9wi7xu3k
    @user-bc9wi7xu3k Рік тому +1

    love your work.but when i enter the google console cloude it does not have the device checker any more what the solution?

  • @arunfrancis5921
    @arunfrancis5921 9 місяців тому

    Hi sir, Actually i was trying to use the Android Device Verification API but its depreciated so how can i solve this problem? Please help.

    • @CodingwithT
      @CodingwithT  9 місяців тому

      No need to use that. Simply follow the instructions and keep the dependencies updated.

  • @hanooooihanooooi1907
    @hanooooihanooooi1907 Рік тому

    Hi, I bought the source code but the opt doesnt work and got this (errors code otp message Failed to send SMS). Please help me

    • @CodingwithT
      @CodingwithT  Рік тому

      Have you configured your Firebase setup for this project?

  • @slimshady7625
    @slimshady7625 5 місяців тому

    what if i try to login with the same number registered during signup will this code work?

  • @jinkim3806
    @jinkim3806 Рік тому +1

    wth, how do you store password for the same phone number, and other detials? how do we login with the same phone number as we have not set any password.

    • @CodingwithT
      @CodingwithT  Рік тому

      Without password using phone number you have to send OTP to users mobile and once verified, users can login.
      Storing passwords are not recommended

    • @jinkim3806
      @jinkim3806 Рік тому +1

      @@CodingwithT thanks, but what if i have other data to store into Firestone on the sign up how do i store the data when the user is verified,

    • @CodingwithT
      @CodingwithT  Рік тому +1

      You can do it inside signup, when authentication succeeded in adding user data.
      Or if you are using Authentication Repository and listening to userChanges, in this case you'll be auto redirected to some other page. So check accordingly

  • @daisyjemutai4971
    @daisyjemutai4971 Рік тому

    Awesome work sir

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 Рік тому +1

    Please teach us now how ro build an admin panel for a doctor patient app or any other fields

    • @CodingwithT
      @CodingwithT  Рік тому +1

      Sure Buddy, next tutorials might be related to you.
      To Create, read, update and delete any data from Firebase

    • @faheemahmadofficial7701
      @faheemahmadofficial7701 Рік тому +1

      @@CodingwithT Thanks :) I want to build an admin panel..to handle apps. my side project hobby

  • @Cha-do7ou
    @Cha-do7ou Рік тому +2

    CODE DOES NOT WORK!!!

  • @immortalforce9467
    @immortalforce9467 11 місяців тому

    Sir, i tried the otp but mine alway redirects to browser for recaptcha

    • @CodingwithT
      @CodingwithT  11 місяців тому

      Don't worry it happens. On emulator it often happens so until its working, nothing to worried about.

  • @dnrahmath
    @dnrahmath Рік тому

    Awesome, i really like this..

  • @tonymetogo5287
    @tonymetogo5287 Рік тому

    Hello I need your help please
    I want to make a system with flutter that generates an alphanumeric code when the user registers how to implement this please

    • @CodingwithT
      @CodingwithT  Рік тому

      Hi, you can do it buy creating a Helper Function and inside create a string with required numbers, alphabets and so on.
      const _chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
      Random _rnd = Random();
      String getRandomString(int length) => String.fromCharCodes(Iterable.generate(
      length, (_) => _chars.codeUnitAt(_rnd.nextInt(_chars.length))));
      You can print them like this print(getRandomString(5)); // 5GKjb

  • @quanvanmanh185
    @quanvanmanh185 Рік тому +1

    i didn't find Android device verification help me

    • @CodingwithT
      @CodingwithT  Рік тому +3

      Its now a safety net that you have to configure. Android device verification is deprecated

  • @monstarfirst
    @monstarfirst Рік тому

    how can i login using otp number you forget it?

  • @vinhkhangphan7599
    @vinhkhangphan7599 Рік тому

    hi, i can't find the src directory in lib , can u help me ? is there any problem with my app ?

    • @CodingwithT
      @CodingwithT  Рік тому

      Hi, it's a custom made folder dear you can create any folder and name it anything in lib

  • @PriyadharshiniRavi-ec7vf
    @PriyadharshiniRavi-ec7vf Рік тому

    Bro flutterfire config command line gives error what can i do further
    here the error:
    flutterfire : The term 'flutterfire' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
    a path was included, verify that the path is correct and try again.

    • @PriyadharshiniRavi-ec7vf
      @PriyadharshiniRavi-ec7vf Рік тому

      plz reply

    • @rj27thug78
      @rj27thug78 Рік тому

      @@PriyadharshiniRavi-ec7vf also check firebase documentation on this and follow as instructed.

    • @krastann
      @krastann 11 місяців тому

      I faced same error today, You need to add 'C:\Users\*username*\AppData\Local\Pub\Cache\bin' in System Environment Variables Path...You can access the edit by going by pressing Win + X -> System -> Adv sys settings then environment variables...Add the Path in System Variable's Path then Save it Restart your machine and then re run Flutterfire configure

  • @somethingcreative9137
    @somethingcreative9137 11 місяців тому

    '-list' is not recognized as an internal or external command,................sir plzz

    • @CodingwithT
      @CodingwithT  11 місяців тому

      I think you are using the list wrongly. Check spellings.

  • @sahilsadhuramani
    @sahilsadhuramani Рік тому

    help sir after doing all steps in the end it is not running and showing error please help

    • @sahilsadhuramani
      @sahilsadhuramani Рік тому

      Unhandled exception:
      FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
      #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
      #1 asFileUri (package:vm/kernel_front_end.dart:654:37)
      #2 writeDepfile (package:vm/kernel_front_end.dart:794:21)
      #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:629:9)
      #4 starter (package:frontend_server/starter.dart:99:12)
      #5 main (file:///C:/b/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13:14)
      Target kernel_snapshot failed: Exception
      2
      FAILURE: Build failed with an exception.

  • @sivasubramanian8345
    @sivasubramanian8345 Рік тому

    Great Tutorial, Sir. How to add the auto-fill feature to it, to auto-detect the generated OTP.
    And also, the re-captcha is still showing even after enabling Google Play Integrity API and adding SHA-256.
    Thanks in advance.

    • @arpitsanadhyaa
      @arpitsanadhyaa Рік тому +1

      No solution for recaptcha brother. Im googling for the solution more then 10 hours

    • @sivasubramanian8345
      @sivasubramanian8345 Рік тому +1

      @@arpitsanadhyaa Yeah brother, I too searched a lot, but can't resolve it

    • @arpitsanadhyaa
      @arpitsanadhyaa Рік тому +1

      @@sivasubramanian8345 there is only one solution. We can fill a form and send it. Than they will enable ANDROID DEVICE VERIFICATION API in our project. After that it will be fine.

    • @sivasubramanian8345
      @sivasubramanian8345 Рік тому +1

      @@arpitsanadhyaa okay thanks, will try it

    • @isurujn
      @isurujn 11 місяців тому

      @@arpitsanadhyaa What form? Where can I find it?

  • @ashenhewavithana9479
    @ashenhewavithana9479 Рік тому +1

    my login is not working properly

  • @manishsaxena2974
    @manishsaxena2974 Рік тому

    android device verification is not available in google cloud console what to do now?

  • @TheJLZ
    @TheJLZ Рік тому

    How can I return to the login and sign up menu once logged in?

    • @CodingwithT
      @CodingwithT  Рік тому

      By following this approach you can go back to login when logged out.
      The way around is if you want to go to the login signup screen you can Simply call them.

  • @SGZGamer
    @SGZGamer Рік тому

    android device verification is not showing in Google cloud at 6:15

    • @user-kv8bw7pk4x
      @user-kv8bw7pk4x Рік тому

      same here, if you found the problem and ssalved it please reply to my comment

    • @CodingwithT
      @CodingwithT  Рік тому

      That method is depreciated. you can get new method from firebase.google.com/docs/auth/flutter/phone-auth

  • @arnoldhattingh4952
    @arnoldhattingh4952 Рік тому +1

    does this also work for ios?

  • @nikhilpandey4118
    @nikhilpandey4118 Рік тому +1

    when login verification part will come?

    • @CodingwithT
      @CodingwithT  Рік тому

      I'm having covid so after a week I will be back on track :D

  • @sibilrahman.p
    @sibilrahman.p Рік тому

    I got an error
    Problem retrieving SafetyNet Token: 7

    • @CodingwithT
      @CodingwithT  Рік тому +1

      Can you please explain it

    • @sibilrahman.p
      @sibilrahman.p Рік тому

      @@CodingwithT
      First of all thanks for replaying my comment.
      This is the error I got when I used phone authentication in firebase.
      E/zzf (15454): Problem retrieving SafetyNet Token: 7:
      I am getting otp message but there is reCAPTCHA issue. Saftey Net is Deprecated ...

  • @labradoryshockdart9734
    @labradoryshockdart9734 Рік тому

    flutterfire config command is not working bro

    • @CodingwithT
      @CodingwithT  Рік тому

      Hi, sorry for the late reply 😪. Still having issue?

  • @afiksourav8540
    @afiksourav8540 Рік тому +4

    please use dark theme

    • @CodingwithT
      @CodingwithT  Рік тому

      Ok. New videos are already in dark mode

  • @user-nm8hq1bi4p
    @user-nm8hq1bi4p Рік тому

    when sumit otp
    type 'Null' is not a subtype of type 'String'

    • @CodingwithT
      @CodingwithT  Рік тому

      It means the variable which is looking for non null able String value but receiving null.

    • @user-nm8hq1bi4p
      @user-nm8hq1bi4p Рік тому

      @@CodingwithT Unhandled Exception: [firebase_auth/invalid-verification-id] The verification ID used to create the phone auth credential is invalid

  • @XxTheSamuele00xX
    @XxTheSamuele00xX Рік тому

    does this work with ios too=

  • @rishavraj6487
    @rishavraj6487 Рік тому

    bro can you share android device verification link because i am not able to open link
    it says There was an error while loading /apis/library/androidcheck.googleapis.com?project=tripp-9f50f. Please try again.
    It may be a browser or network issue. Go to the loading issues help page to troubleshoot the issue.
    Request ID: 1171542026589408738

    • @Skyy9670
      @Skyy9670 Рік тому

      same issue. did you fix it?

    • @rishavraj6487
      @rishavraj6487 Рік тому

      @@Skyy9670 nope still trying :(

  • @elmedia5786
    @elmedia5786 Рік тому

    Ua alaykum assalam

  • @dr.rahultech
    @dr.rahultech Рік тому

    Website is Down

    • @CodingwithT
      @CodingwithT  Рік тому

      Thank you for your patience. We are working on it and will be live soon.

    • @CodingwithT
      @CodingwithT  Рік тому

      We are back online 😁

  • @38_it_adarshsharma44
    @38_it_adarshsharma44 Рік тому

    sir Android device verification API is depricated now it not present in the library then whatv should i enable in place of that

    • @thesanfitness
      @thesanfitness Рік тому

      Is it true?? So should i go for this video or not? Any suggests

    • @CodingwithT
      @CodingwithT  Рік тому

      Which library? You just have to enable them on the link that i talked about and select your project before enabling

    • @38_it_adarshsharma44
      @38_it_adarshsharma44 Рік тому

      @@CodingwithT sir please can u share the link here for "Android Device Verification " library

    • @CodingwithT
      @CodingwithT  Рік тому

      If you read out the official documentation of flutter firebase.
      They stated that you have to enable this deprecated api means we have to if we want to use this service.
      console.cloud.google.com/apis/library/androidcheck.googleapis.com?pli=1

    • @user-ps1xr4yu9m
      @user-ps1xr4yu9m Рік тому

      @@CodingwithT that link doesn’t work. I already select my project. What should I do?

  • @rishavraj6487
    @rishavraj6487 Рік тому

    for otp message it says Something went wrong.Try again

    • @madhurtyagi803
      @madhurtyagi803 7 місяців тому

      I am also facing the same issue how did you resolved it