In this Flutter video tutorial, I have integrated firebase mobile phone verification in the application. Buy me a coffee : www.patreon.co... GitHub : github.com/the...
Пікірлер: 196
@letmedoit.3 жыл бұрын
Thanks very much bro , i never usually comment but this video made me comment , i really respect your efforts keep growing keep doing 👍🙂
@EasyApproach3 жыл бұрын
Thank you so much 😊
@syedhs3 жыл бұрын
Very nice.. I was able to sift thru the video till the end without skipping. Which shows that every bit of this tutorial is worth watching for.
bhaii, it's a different feeling when we get OTP first time from our own app !! :D
@hrithikrtiwari3 жыл бұрын
Subscribed to your channel just by listening the fact that you are making this video again as google updated it... People nowadays don't make videos to spread knowledge, but to gain views.. Keep up bro.
@EasyApproach3 жыл бұрын
❤️
@darlingtonhp2 жыл бұрын
This is undoubtedly the best video on firebase mobile phone verification. Thanks for the wonderful work you put into this tutorial.
@fatihtutar75833 жыл бұрын
I have been researching this for several weeks. After entering with sms verification, when I close and open the application, it was going to the login screen, I wanted it to go to the home page. It was exactly what I wanted, thank you very much.
@EasyApproach3 жыл бұрын
Jazakallah thanks
@fatihtutar75833 жыл бұрын
@@EasyApproach I didn't know that you are a muslim. Jazakallah too. I'm from Turkey.
@gemanoff2 жыл бұрын
Hi! I get an error in line 47 in main.dart: "_user = _auth.currentUser;" Issue: Returns the current [User] if they are currently signed-in, or null if not. This getter only provides a snapshot of user state. Applictions that need to react to changes in user state should instead use [authStateChanges], [idTokenChanges] or [userChanges] to subscribe to updates. A value of type 'User?' can't be assigned to a variable of type 'User'. Try changing the type of the variable, or casting the right-hand type to 'User' Please help me somebody!
@alexgeorge17683 жыл бұрын
Thank you for your channel, encouraging me to stick with flutter more and more. You are the best!
@EasyApproach3 жыл бұрын
You are so welcome!
@prsh19893 жыл бұрын
Best best best best best best explanation of this concept among all the other videos available. Absolutely helpful and amazingly simplified from a beginner or learner's understanding perspective. No unnecessary fuzz, details, here n there code, complex file program structure, just, precisely showing code to the point around topic. Wonderful! Big big thanks for making this video. I watched few videos and go through some medium articles to understand this functionality, however failed. But you nailed it! The way you explained even the smallest details (but most crucial) like how verificationId works, you won my heart just there. Could you further take little time, and point me in right direction and help me with below questions: - how _auth in home_screen knows, exactly which user to signout? I mean, the detail of user who is signed in, is saved in login_screen file, isn't it local to that file? (I am sorry, my question is foolish, but I dont understand how this works) - After user is logged in, I want to present screen to user where he can enter details like profile picture and full name, how can I save these details on firebase and made available in app to display? I mean, how would I know, that details will be saved to this user, or will be linked to this user who is logged in using this number? do I have to use verificationId variable? Which video should i watch from your library regarding this. But still you have to give me little explanation, how I will link details on firebase user account to current logged in user on device
@chinmayrele79403 жыл бұрын
Perfect tutorial for phone otp authentication using flutter. Explained in detailed and perfectly. Thanks man!!!
@EasyApproach3 жыл бұрын
Thank, subscribe the channel if you like
@nikashdeka66633 жыл бұрын
This is the most comprehensive phoneAuth with firebase. Superb! Kudos and really really appreciate this video. Thanks a ton 🙏👍👍👍👌🏽👌🏽👌🏽
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@nikashdeka66633 жыл бұрын
Already subscriber 👍
@nikashdeka66633 жыл бұрын
As the showSnackBar is depricated, i have gone the context way. .. ScaffoldMessenger.of(context).showSnackBar( SnackBar(content: Text(error.message), ), ); # Is it correct?
@zayramendez98023 жыл бұрын
man, seriously, your work is excellent !!! this video is very thorough, concise, very well explained, and truly helpful !!!
@DanielHenryThomas3 жыл бұрын
there may exist some diferences though, between the Android Studio for MAC which seemingly you use, and the Android Studio for LInux which I am using... for example, the code shown at minute 39:41 does not work for me, Dart Analysis shows an error which apparently is related to some new "Null Safety" issue...
@DanielHenryThomas3 жыл бұрын
yet, no big deal... apparently, one only needs to use a nullable String? instead of a non-nullable String
@emotionaljackfruit3 жыл бұрын
Great video bro! Thanks a lot. But you forgot to show the autofill feature.
@kabirmaniar63823 жыл бұрын
Very good tutorial and still useful in 2022!
@rohanjangotra51663 жыл бұрын
I keep getting an error "androidx.browser:browser1.3.0 not found" can you please help me with this?
@santoshsahoo34553 жыл бұрын
Hiii sir This video is the main reason to get my job Thank you so much sir
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@prafulmane70783 жыл бұрын
ive been getting a lot of errors. I guess its because of the updates. Could u please help me out
@anasyousuf4852 жыл бұрын
TYSM ♥♥♥ i never knew that from GCP we can see our firebase project too...
@devgarg57592 жыл бұрын
Very very very Grateful to you man, really you helped us so much by making this video, Keep creating please.
@nsambaisaac87423 жыл бұрын
Hello man i tried your solution but keep gettin this error: [firebase_auth/invalid-verification-id] The verification ID used to create the phone auth credential is invalid. It is Thrown by this function signInWithPhoneAuthCredentials() in the Try{}catch() Block Any Ideas am waiting
@vishnukumark67573 жыл бұрын
Thank u very much brother for tutorial. I am beginner of flutter. I understood clearly by the way u teached.
@ankitchawla84873 жыл бұрын
Thanks for this man, I really needed this.
@EasyApproach3 жыл бұрын
Glad I could help
@empereurfranck69243 жыл бұрын
brother you save me, thank you very much and courage to you! 100/100
@EasyApproach3 жыл бұрын
Please subscribe the channel
@dirojasvera2 жыл бұрын
Hi, I'm having this error, if you could help me, it would be in void signInWithPhoneAuthCredential if (authCredential?.user != null) { Navigator.push( context, MaterialPageRoute(builder: (context) => HomeScreen())); } error: The setter 'user' isn't defined for the type 'Future'.
@lohithyadav4972 жыл бұрын
Hello im getting this error why i may know the reason ,Column's children must not contain any null values, but a null value was found at index 0
@CrazyHostelers3 жыл бұрын
this tutorial is a real gem🔥🔥
@prithvipk63283 жыл бұрын
Sir seriously you are osm
@kevaltank45443 жыл бұрын
WOW!! thanks a lot brother nice video.. i am trying to do mobile authentication since last 2 days but it didn't work.. with the help of this video i did it.. nice work brother.. keep it up.
@EasyApproach3 жыл бұрын
Thanks :) please subscribe the chanel
@forexwithjustiin3 жыл бұрын
Me too. This is the only video that has worked for me. Good work!!
@ezone27263 жыл бұрын
Thank you for this tutorial! Also make an role base app where admin can control all part of user part but the user can post ,edit, delete the data, like and comment of the post of admin and other user .
@EasyApproach3 жыл бұрын
Sure
@ezone27263 жыл бұрын
@@EasyApproach waiting this tutorial and thank you so much! And please make tutorial in native hindi language.
@m.a.l48813 жыл бұрын
Good job sir as Always but one question.How to Handle Plateform exception which is still appear when a user type bad otp code and send it?
@suryamanjunathang49472 жыл бұрын
sir im getting an error when send the otp, 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. I used my SHA256 key only but also it is showing the same error
@apoorvbharadwaj71563 жыл бұрын
Can anyone please let me know how to use null safety @39:51? The error that is thrown is "The argument type 'String?' can't be assigned to the parameter type 'String'.".
@malikarif62572 жыл бұрын
same errror😀
@malikarif62572 жыл бұрын
you are solve this error ?
@prmoreiit3 жыл бұрын
Pressed 💯 th like. Thanks for the video. Very helpful 🙏.
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@prmoreiit3 жыл бұрын
@@EasyApproach ✅
@code4u6203 жыл бұрын
Hi sir i have followed your tutos its awesome ,but i am facing a small issues i cant received an opt sms
@erdba20073 жыл бұрын
Great, it works except minor issue. Thank you man.
@gustavomenezes27683 жыл бұрын
Hi, how can I avoid the verifyPhoneNumber() method to automatically trigger the verificationCompleted callback? I don't know why but after login for the first time the verifyPhoneNumber() method is not triggering the codeSent callback again...
@sakshinawale43423 жыл бұрын
hey!! I'm getting error in verificationfailed method, inside the SnackBar
@AmitabhSharma4863 жыл бұрын
Thanks Maaz, great help
@nulops2 жыл бұрын
How can we automatically authenticate the user who authenticates via a phone. AUTH I would like to close and reopen the application without it asking me for OTP authentication again
@musicaddictions07772 жыл бұрын
While running this code sample it shows duplicate global key detected in widget tree
@silkwoodification3 жыл бұрын
so this is a sign-in with a phone number, but it is not a register with a phone number included?
@diabeticvirus3742 жыл бұрын
is there a way which i can save the otpcode sent to me by sms in a variable??
@Ganesh-lh1bt3 жыл бұрын
Thank you so much for the content. Appreciate your effort.
@manishsaxena2974 Жыл бұрын
android device verification is not available in google cloud console what to do now?
@EUCSAKASHM3 жыл бұрын
hi sir i have a doubt, is there any way to display photos after login instead of the homescreen. in the way like showing different photo from different mobile number login
@russwestwoodAgain3 жыл бұрын
This video answered all the questions I had, thanks so much for this....
@EasyApproach3 жыл бұрын
Glad it was helpful! Subscrbe the channel for more!
@fenofanikshotahotbishoasho62483 жыл бұрын
Thx bro, you are AWEOSOME!
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@thebullcapital3 жыл бұрын
bro im facing a problem when i disable the number from firebase that user still able to open the home page..... how to fix this can u guide me... i made the it with the same code what u show to us in this video....although every thing are great ...thnx for the video ....
@tutzki50773 жыл бұрын
how to check if the code and verification code is correct without sign in the credentials because I have current user when I do that I got error coz its overwrite my current user
@AK-qs6mi3 жыл бұрын
the getter 'phone number' was called on null. Reciever :null. Pls help.....
@julianavitoria27623 жыл бұрын
very good this video, i'am brazil here !!!
@EasyApproach3 жыл бұрын
I have many brazilian friends :) you are one :)
@shohzodlord3 жыл бұрын
Thank you very much (especially for source code). It works.
@sevarjafarli86693 жыл бұрын
Thank you so much for the video!
@EasyApproach3 жыл бұрын
Please subscribe the channel
@RamRaj-jz5dn3 жыл бұрын
Hi may i know why we should run it on the real device? is it possible if i run it on the emulator at the moment?
@s2productions2423 жыл бұрын
I dont really understand how do I do this with Cubit
@areebafarooq26943 жыл бұрын
from where you get this recaptcha dependency ??????
@umorenben3 жыл бұрын
I tried everything. But there was an issue when I got to "48:28", with the code "if(authCredential?.user != null)..." WHAT DO YOU RECOMMEND??? So I used "UserCredential result = _auth.signInWithCredential(phoneAuthCredential) as UserCredential;" This worked but i did not get any code send to my phone after running the app on my real device
@BerkanBuyuk3 жыл бұрын
Did you fix it ?
@dharamathukiya96182 жыл бұрын
Same error I got it ... How can I solve it..?
@Burak-bp3ob3 жыл бұрын
thank you so much, great work!
@EasyApproach3 жыл бұрын
You're welcome!
@awsmjazz2 жыл бұрын
I am a noob and i only wish you would have explained it in easy terms. A huge Thanks to you btw the app worked but i didnt understood the flow of code
@gauravpatkar19463 жыл бұрын
If I type wrong OTP then it’s getting stuck in loop maybe I missed something in code
@andrewparris53723 жыл бұрын
Thanks, it works! 😀 Could you do a video on Flutter / Firebase / Password-less Authentication ( Email Link ), I mean providing you've figured it out. I've been beating my head against a wall for a couple of weeks now, trying to figure it out! 🙄
@EasyApproach3 жыл бұрын
That's great idea actually. Will do it soon. Thank you. Please subscribe the channel.
@andrewparris53723 жыл бұрын
@@EasyApproach Oh I did. You gained a subscriber when this actually worked. Most of the information out, in reference to Flutter, is outdated due to Null Safety. Thanks again and looking forward to that video! Have a good day. 🙂
@apnisochbadlo27113 жыл бұрын
sir it's a real time verification or you add mobile no and otp manually
@arunavabhaumik16363 жыл бұрын
thanks man for this awesome tutorial.
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@arunavabhaumik16363 жыл бұрын
@@EasyApproach already subscribed
@MaiMai-xz4pj2 жыл бұрын
the SnackBar error bro i use latest dart version can you tell me
@KamranKhan-jg1md3 жыл бұрын
Sir please make a complete course on Flutter and Firebase. Love from Pakistan.
@EasyApproach3 жыл бұрын
Inshallah zror
@KamranKhan-jg1md3 жыл бұрын
Tnx😊
@kannannallu91703 жыл бұрын
Super explain bro thanks,u upload more flutter vedio
@EasyApproach3 жыл бұрын
Will upload soon. Please subscribe channel.
@kannannallu91703 жыл бұрын
@@EasyApproach subscribed bro
@mayssamathlouthi91613 жыл бұрын
Thank you very much for this video, great work
@EasyApproach3 жыл бұрын
You are welcome!
@balasaravananvp42533 жыл бұрын
Is there a way to continue the Signup the user without OTP verification?
@NotImpossible3 жыл бұрын
hey man, can i create verification by voice with google ?
@muraleespore3 жыл бұрын
Thank you .... i got it working....
@sadaanshahid72373 жыл бұрын
Can you please also guide us on how users can resend OTP
@muezaffar3 жыл бұрын
Hi sir, how can i send username to the firebase with phone number?
@novysandhu51933 жыл бұрын
anyhow if I go through your old video of mobile phone verification does it works now ??
@EasyApproach3 жыл бұрын
Nope
@breathandrelax23 жыл бұрын
wow. just wow. thank you so much.
@shakeebahmedkhan80263 жыл бұрын
he argument type 'AuthCredential' can't be assigned to the parameter type 'PhoneAuthCredential'. this is the issue, i am facing in your code sir
@shakeebahmedkhan80263 жыл бұрын
if anyone knows the solution, so please tell me i m fed up with this error
@gamingbugs92963 жыл бұрын
@@shakeebahmedkhan8026 Dara type on both side must be same.
@jeetshah85133 жыл бұрын
Thanks buddy
@EasyApproach3 жыл бұрын
Thanks. Please subscribe the channel :)
@gauthierngindu28813 жыл бұрын
How to add country flag with index number of country ?
@EasyApproach3 жыл бұрын
There is a package you can use pub.dev/packages/country_code_picker
@mariannem21783 жыл бұрын
Great tutorial, trying to get past the depreciation of snack bar. In the Text Widget it won't let me get verificationFailed.message or e.message. I can see that its coming from Firebase Auth Exceptions I dont have that in packages however your github project does. This is the error im getting: "The argument type 'String?' can't be assigned to the parameter type 'String'" Any help would be appreciated :)
You enabled the cloud service? For the same firebase project?
@EasyApproach3 жыл бұрын
Check it again
@jaitungodhani23343 жыл бұрын
Ohkk I will try this Thank you😃😃😃
@ganeshlnsabat46593 жыл бұрын
Thank you for this video.....
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@fatihtutar75833 жыл бұрын
If this application is still in your archive, can you run the same application in release mode. I'm doing the necessary things, but I can't receive sms in release mode. I've been trying to get sms in release mode for 2 weeks. If you can make a follow-up video of this video, you can help. I'm waiting for your help.
@MrGuillaume3433 жыл бұрын
Did you manage? I have same issue...
@fatihtutar75833 жыл бұрын
@@MrGuillaume343 yes I will add debug mode sha-1 and sha-256key and release mode sha-1 and sha-256key and sha-1 and sha-256key that google play console give to me into Firebase Console app settings. Then I dowloaded new googleservices.json. Secondly I set enable Android Device Verification on Google Cloud Platform. That's it.
@MrGuillaume3433 жыл бұрын
@@fatihtutar7583 thanks a lot. And how and where do you find sha releases keys ?
@fatihtutar75833 жыл бұрын
@@MrGuillaume343 there are something that you must learn. You should search sha-1 sha-256 key on release mode on the internet or did I search and couldn't find it?
@MrGuillaume3433 жыл бұрын
@@fatihtutar7583 it is ok. Thanks for the help
@prashan-gc2 жыл бұрын
how to i find my SSH key if im using VS code editor?
@dilajbar87962 жыл бұрын
not neccesory man
@mahmoudgeater12603 жыл бұрын
it will work in release mode?
@diwakar48633 жыл бұрын
Can you do this with BLoC ?
@vedantjha23273 жыл бұрын
What about iOS and web?
@EasyApproach3 жыл бұрын
For ios it is same just add firebase in ios project
@vennilatestware57773 жыл бұрын
i need to check in emulator. is this possible?
@EasyApproach3 жыл бұрын
no
@muhammadabdullah6683 жыл бұрын
Im getting ongenerateRout error
@spidy0113 жыл бұрын
How to login with phone number and password
@simplifiededtech59133 жыл бұрын
shA1 or SHA 266 nahi mila rahia hai
@gamingbugs92963 жыл бұрын
Do it manually.
@joonnie13 жыл бұрын
What about iOS? You should write "only Android" in the title
@sezarbaarah87293 жыл бұрын
thank you very much
@bismillah_9963 жыл бұрын
Thank you
@EasyApproach3 жыл бұрын
Please subcribe the channel
@kushalurade70423 жыл бұрын
Sir in my case otp is getting but OTP screen is not visible ।।😔
@EasyApproach3 жыл бұрын
Which screen is visible? May be you did not use setstate
@kushalurade70423 жыл бұрын
I have compare the code of you and mine it's same thereafter that problem is getting
@kushalurade70423 жыл бұрын
If you is on instagram plz give insta link i will show you screen shot there
@kushalurade70423 жыл бұрын
At first entering phone number screen open then after get OTP and then OTP screen is not showing and not automatic login
@lohithyadav4972 жыл бұрын
Hello im getting an error
@shibamnaskar46973 жыл бұрын
how to get the user uid??
@EasyApproach3 жыл бұрын
From the user object that you get after loging in.
@abhishekbarkade59553 жыл бұрын
Thanks a lot sir .......
@EasyApproach3 жыл бұрын
Most welcome
@thebullcapital3 жыл бұрын
i dont know why other people not find this
@StrangePraani3 жыл бұрын
wrong OTP is not handled sir...
@EasyApproach3 жыл бұрын
Ap intelligent hen, Ab ye apne krna h search krk :)