Part - 10 | Flutter Firebase Phone Authentication || How to Login with Phone Number with Firebase
ฝัง
- เผยแพร่เมื่อ 2 ก.ย. 2022
- In this video i will teach you how you can login with phone number with firebase.
Playlist: lnkd.in/dfwijFgd
instagram: / thetechbrotherss
join fb group: lnkd.in/dAWaFWtp
Flutter Bo0tcamp 2022: lnkd.in/dVv_jy4W
Road map: lnkd.in/dHF8yc68
_____________/Connect On Social Media\____________
► linkedin:➜ / axiftaj
► Instagram:➜ / axif_taj
► Facebook:➜ / aaxiftaj
► Twitter:➜ / axiftaj
► GitHub:➜ github.com/axiftaj
► Hire me on Fiver:➜ www.fiverr.com/asif_taj
=========================================
flutter, connect firebase, firebase tutorials, firebase authentication
For business queries : axiftaj@gmail.com
Thank you for watching my channel do give feedback about this video.
#flutter #firebase #firebasehindi #firebasetutorial #flutter #flutterdev #login_form #fluttering - วิทยาศาสตร์และเทคโนโลยี
TERMINAL
Go to the project folder in the terminal.
Mac command: keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Windows command: keytool -list -v -keystore "C:\Users\bilal\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Linux keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
sir code is not run in teriminal.
Same issue
sir I am not used MacBook.me are used dell .
xcode not used to my pc. you given ide from iPhone delver to you require.
@@ssagaming4545 please check comment is updated
code not working
Great Tutorial brothers. Amazing video. Itni achi video woh bhi urdu main dekh ke bari khushi hui. Honestly better than many English channels.
share with your friends
Never really thought if Firebase was this much easy, all thanks to your wonderful explanation sir!!
I make it easy for you guys if you understood the concept
us bro
Superb, fabulous way of teaching
thank you pro do subscribe and share with your friends
MashAllah Sir bht kuch seekhny ko mila😇
Agy agy r bbi videos aa rahy ha
learned alot brother......KEEP IT UP
thank youm share with you friends
Amazing video.
My all problems solved
Subscribe and share
@Asif taj thanks a lot for creting so much for creating these videos
Glad you like them!
just awesome. jis trah aap explain karate hain sab samajh aa jata hai. You are doing a great job sir. aur jis tarah aapne full course ko structure kiya hai...zabardast hai.. Love from India.
Thank you do subscribe and share with your friends
Thanks for this awesome video sir.
also please make a video when we signUp any account , with email and password we can also save the user phone number and after that user can login from both the options email or phone number. just like facebook signUp
Yes you can you have to make the logic
@@thetechbrotherss haan sir ye to dekh lia hoo but jaise facebook m hota h na email link hota h mobile number se signup k time.
iss tutorial se nya account hi bn ja rha h phone number se
thanks bro , that's helpful
Glad it helped
SIr, utils method is showing undefined in authenctication part is it from different package
Please follow tutorial carefully
i am doing fyp in flutter and at the end of fyp we have small task which take 2,3 hours to complete without internet
so i cant use firebase for backend
mostly students use MS SQL and C# APIs what do you recommend which language should i use for API (C# or PHP )?
and in industry do people use sql and C# apis?
yes you can used firebase.
@@thetechbrotherss
I can't bcz we dont have internet during fyp task 😭😔
Or can we use firebase without internet?
@@obaidkhan3971 no dear. without internet you can not access firebase.
@@obaidkhan3971 what type of fyp is this that u cant even use internet u r a programmer obviously you need internet what dumb university is this
@@obaidkhan3971 save data in sql file and use stream to check internet when ever you will connect to the internet create a logic to update your data to firebase
thank you
thanks
Sir phone number has only registration system ?? Like email and pass. One email only registered once and then account already exist toast but in phone number case there is no create account option ?
This is otp login/sign up
Bro, do we need to enable Google Play Integrity API for phone authentication, because I was getting an error , which said - "missing client identifier this request is missing a valid app identifier, meaning that play integrity checks and reCAPTCHA checks were unsuccessful".
I am not sure, read documentation
please do check weather the jdk is installed or not and weather it is added to environmental variables, than the command will run or else it will not run
Thanks for sharing feedback
i can not run the command , how can i?
sir yeh Runner.xcworkspace wali file mere pass windows android studio mai nhi hai ...tu isko abhi kese laoon ??
Yeah windows k liye ni ha isko choor do
Sir I am having issues when submitting the phone number for verification, the error pops in my phone stating 'SafetyNet' is not enabled. However, Firebase Console isn't letting enable SafetyNet even though I am the owner stating that "You're not the owner"
Please follow the the playlist from start or do checkout how to make connection with firebase
how do i sign up with a phone number and password, Like i want to make a signup form with phone number and password, after filling the form it goes to confirmation screen and then creates a user with username and password and after that user can sign up with the phone number and password
In this video i have taught how you can sign up.
And i have also taught rest of the concepts as well. Used those concepts according to your requirements
Sir let me know it will be same user as u did login with email and phone, if not how can we keep both option for a user ?
Nop, it must a different user as phon and email are change
when i use application on phone using USB debug , jo main login screen hai isme email and password and login with phone ka option hai usme textfield pe jab click krte hai keyboard a jata and pixel overflow show ho rha so any method to deal with or i use listview in place of colum
wrap body with single child scroll view widget
@@thetechbrotherss okay thanks
Can you also make email verification, it will send an email link after we signup. After we click the email link it will proceed to admin page?
oK
@@thetechbrotherss thank you man.
Thanks alot for such a helpful material. I wish you make a short video on "google_ml_kit" and show us how to extract text from a image.
sure do subscribe and share with your friends
Aoa Sir
Sir es k liye java ki koy extension zaroori h?
Ni
Bhai mene isme Country Picker ki jagah IntlPhoneField Widget use Kiya hu to usne me already Country list mese country ka flag and +92 wala code select kr skta hu but fir bhi muje field me number ke aage manually +92 add karna pad raha he to isse mene IntlPhoneField Widget use Kiya uska kuch meaning hi nahi rahega to ye jo code kiye ho tmne isme direct mobile number without + country code ke kese TextFormField me add kar sakte he please help me to solve this .... Agar me direct mobile number enter krrha hu Country Select karke to Firebase se error show ho rha he ke invalid format that's why bol rha hu ke +92 ke bina only mobile number kese add kre TextFormField me.
It means you are doing something wrong bro, ap concatenate kro
can't wait to meet you in Google I/O Extended Peshawar 2024
looking forward
sir..SHA key nhi mil pa rhe hai koi solution btao (for window user)
Subscribe. run this command
keytool -list -v -keystore "\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Sir auth code ko shared preferences me kese save karwa sakte he
Watch shared preference video please
Isi Playlist me hai shared preferences?
mujy ya error araha hn, ma ny SHA ba Add kar liya lkn pir b error araha hn
(This App is not authorized to use Firebase Authentication , Please verify that the correct package SHA-1 and SHA-256 are configure in the firebase console [invalid App info in play integrity tokan ]
hey i am not able to find the client Id and reverse client id in my google services info plist . can u please say me the solution
Please double check this for ios
If any one facing the error while generating the SHA-1 and SHA-2 Key, follow the steps for andriod
1- Go to your project, in the andriod folder there's a "gradlew" named folder
2- Right click on the "gradlew" folder and select "open in terminal or open in integrated terminal" it will open the folder in the terminal
3- Then type " ./gradlew signingReport " press Enter
Inshallah your problem will be resolved :)
Thanks for sharing this
Thank You bro but my different problem in my Vscode .But HelpFull Command Thanks Bro .
there is no such folder
bro still not working
bro still not working(2)
Please make new video of this, I mean with new firebase properties
Ok
@thetechbrotherss
Sir I'm unbale to get SHA fingerprints. I have copied the command but not get the results. Please help me how can i get SHA fingerprints. I'm windows user so kindly help me accordingly. Your help will be fruitful to build my final year project.
Please read comments it will help you generate SHA key
sir solve my problem (keytool -list -v -keystore "C:\Users\\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android) sir its not working .it gives key tool error.i am window user
check first comment and used it properly used your pc name check in command prompt
@@thetechbrotherss
thanks sir ♥️
bhai tumne toh IOS ka apne Mc s xcode open kar diya or hum kahan s karain y open xcode m poora btayaa karo yaar info.plist dikhri mujhe sirf flutter m working on window
ap na kr na ap window wala kam kr lo bus
@@thetechbrotherss thanks for reply but android wala done h but m flutter m chahtta hu ki wo ios ka bhi done rahey
to iso k liye macbook ly lo phr
@@thetechbrotherss wt a solution 👏👏😀
Sir how can we login again with the same phone number after first time creating account using phone authentication.
Just logout and login again your data will remain same don’t worry firebase automatically manage your session.
Sir my emulator is taking much time (5-10 minutes) to send the code. What could be the issue.
Run on physical device to test
@@thetechbrotherss Thank you. It's working fine on emulator too
Iam Facing this error please tell me how to handle it
ERROR[ firebase_auth/missing-client-identifier] This request is missing a valid app identifier, meaning that neither safetyNet checks nor reCAPTCHA checks succeeded.
Restart the project if you have added the SHA key in firebase.
@@thetechbrotherss same error comes
Sir i get the otp from firebase after entering the phone number, but it is not navigating to the next page where we enter the otp.
It will automatically verify but you add the code hit the verification api
mobile number add krna ha?
sir aj live aa gay.
ni jb ma live atta hu group ma bta dyta hu
Sir please google sign in be seka dy....
Wo bht simple ha check yar uski plugin use karin
@@thetechbrotherss doen
This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful. Please try again, or check the logcat for more details.
Ye error a raha ha sir please guide
bhai isko google krna parhy ga
It's not working at all the verification part i tap on login while phone number already written but it keeps no loading like circular progress indicator keeps on moving but not working and i am not getting the code on my phone # too.
Please guide me...
Thanks
But u haven’t share the error,
Check sha keys, add internet permission
@@thetechbrotherss This execption was shown there...
════════ Exception caught by gesture ═══════════════════════════════════════════ The following assertion was thrown while handling a gesture: Either phone Number or multiFactor Info must be provided. 'package:firebase_auth/src/firebase_auth.dart': Failed assertion: line 776 pos 7: 'phoneNumber != null || multiFactorInfo != null'
How to solve this error pls help The instance member 'auth' can't be accessed in an initializer.
I think you got the answer in facebok group
@@thetechbrotherss ok
Do we have to add permissions in Android Manifest File ?
Yes for internet
@@thetechbrotherss already added
sir facing very issues in ssh key commands
please read comments you will get the answer
page navigate nhi ho rha sirf loading hi ho rahi hai can anyone tell me where is the problem and otp is coming also
Bro ap kuch mistake kr rahy ho, check code on my GitHub
Sir when I clicked on the login button and sending phone number then they show error "the internet error"
Add internet permission in manifest file
Sir ye SHA wala code kaha pe hai?
Check first comments
18:34 py number add krta hun apne pass tw kch process b nai hota.
Ap kuch mistake kr rahy ho watch carefully till end
@@thetechbrotherss 🥺 okay. 2 baar start se dekhi again. Same steps follow krr rhaa hun mgr frr b
Please. Make video how to remove check robot and autofill otp
And one error one phone number is blocked by firebase how to solve this error
Ok
Sir how to remove recaptcha in this process?
i am not sure
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 If this error is occur then add ' C:\Program Files\Java\jdk-20\bin ' to your system environment variables if that's the path where your Java Development Kit (JDK) is installed.
isntall java
still its not working i have installed java
i have error in SHA Key may anyone help please
share error
Key store file does not exist ka error araha hai bro
isko thora search kr lain
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
read first comment
@@thetechbrotherss kindly pin we are unable to find
Check that the directory the keytool executable is in is on your %PATH% environment variable.
For example, on my Windows 7 machine, it is in C:\Program Files (x86)\Java\jre6\bin, and my %PATH% variable looks like C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Java\jre6\bin;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
bhai aik mehrabani aik aur kardo ap source code b share kiya karo
ni bhai process sekho mera 4 saal ka experience ap aise ly lo gy to kuch bhi ni sekh pao gy
@@thetechbrotherss sahi
@@thetechbrotherss hahahah Sir G the great
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.
how can i fix this problem??
Bro apny system environment variable meh path set kro java ky andr ko bin hai us ka path set kro user acnt meh.
Then cmd meh keytool type kr ky run kro ho jaye ga error reaolved
you go the answer i think
what is topic ?
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. Sir kindly let me know kesa solve krn
Please follow video carefully, provide country code and phone number.
u need to add +91 if ur in india to the phone number entered , format : +[country code] phone number
Assalam o Alaikum Sir
Sir Command nahi mil rahi?
Please provide kr dijiye
Shukria!
check first comment
I got error unable to connect to chanel
Make sure your project is perfectly connected with firebase
how to remove reCAPTCHA verification with Play Integrity
It's now automatically checked by firebase
phone OTP authentication firebase me first time user login ho jata fireStore me data save kar te hai,
Dubar login karne pr data refresh na ho
if statement kaise lagai batao
Please 🤔
dobara ni hota ap status check kro na
@@thetechbrotherss aap uninstall karne ke baad
@@thetechbrotherss login only phone OTP verification firebase fireStore
Ek bar
Name
Number
Save karane ke baad
Aap uninstall
Fir install kare to
Usi phone number se
Fir login karne
Par fireStore save data refresh na ho
getting error for SHA key, The term 'gradlew' 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.
please tell the issue
Please check again the first comment and read it carefully
OTP is not coming!! Why anyone?
please share error
Sir if we learn Firebase, then is there a need for us to learn SQL as well for backend? or with Firebase we can do everything and then there is no need to learn SQL for backend?
Learn everything
SQL is a must regardless of what backend you work with, its very easy, and will help you in the career in future. It will not take you more than 2 weeks to learn.
der khy alka der sa ba zda ko darna
Thanks share ka margaro sara
❤❤❤
thank you
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.
Yeh error arha hai asif bhai jab mai window wali command lgata hun.
🤔
Please check parh
@@thetechbrotherss hogya solve manually krr lia tha. Neechay ek bhai ny suggest kia tha k Android k folder mei jaaky cmd mei "gradlew singingReport" command se.
@@ehtisham692 help me
Mera be yhi same error a rha ha
@@ehtisham692 kindly bta do command mai exactly kya likhna hai
Where is the link I did not see
Read first comments
Code nahi aa raha hain...kiya karu?
Please follow video carefully
pura process shi kiaa bss mobile no.dalne ke bad mujhe otp nhi aa rha hee kyaa karu??
You must have missed something check error or enter correct phone number
same
@@thetechbrotherss
It says BoxConstran biggest does not very phone number
didn't understood
@@thetechbrotherss keytool -list -v -keystore "C:\Users\hp\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android use this command
and have this error I/PlayCore(19607): UID: [10098] PID: [19607] IntegrityService : requestIntegrityToken(IntegrityTokenRequest{nonce=2R5Df-6Sd5PHbVbHMdfmQnNq8M5gWVXrtBn6LcQqnr8, cloudProjectNumber=551503664846})
I/PlayCore(19607): UID: [10098] PID: [19607] IntegrityService : Initiate binding to the service.
I/PlayCore(19607): UID: [10098] PID: [19607] IntegrityService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.integrityservice.IntegrityService})
I/PlayCore(19607): UID: [10098] PID: [19607] IntegrityService : linkToDeath
I/PlayCore(19607): UID: [10098] PID: [19607] OnRequestIntegrityTokenCallback : onRequestIntegrityToken
I/PlayCore(19607): UID: [10098] PID: [19607] IntegrityService : Unbind from service.
W/System (19607): Ignoring header X-Firebase-Locale because its value was null.
E/FirebaseAuth(19607): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token
D/FirebaseAuth(19607): Invoking original failure callbacks after phone verification failure for +923068601902, error - This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid request fields in play_integrity_token ]
D/EGL_emulation(19607): eglMakeCurrent: 0xa3563e00: ver 2 0 (tinfo 0x83937980)
D/EGL_emulation(19607): eglMakeCurrent: 0xa3563e00: ver 2 0 (tinfo 0x83937980)
I tried my best but couldn't solve it 🤐 I need help ..
State problems
@@thetechbrotherss please check your Instagram ib
Hy sir ! How are you ?
Sir ye Error aa raha jab ma verification code add karta hon {[firebase_auth/invalid-verification-id] The verification ID used to create the phone auth credential is invalid.}
kindly sir tell me what's the solution of this
phone number enter bi ho raha ha or code bi recive ho raha ha lakin jab code write karta hon to verification complete nie hoti ye error atta ha login nie ho raha is method sy
Ok
error=>
key store file does not exist
Read first comment and follow it properly
Kindly pin the command to get SHA certificate fingerprint
check first comment
where is the command?
check frist pined comme
nice
Share with your friends
sir where is command
check first comment
@@thetechbrotherss sir where is 1st comment
broblem
kya issue ha
Mujh sy to copy nh ho rha comment 😂
hahahah q
@@thetechbrotherss pta nh kabhe kia nh ha
@@thetechbrotherss watsap group mn send ker den whn sy copy ker loo ga
error - This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ] Getting this error
Same😢
@@jaguarryzen6514 Run your app on physical device (mobile)
great you got the answer
have you solved this error ?
Picked up JAVA_TOOL_OPTIONS: -Xmx3489m
keytool error: java.lang.Exception: Keystore file does not exist: \.android\debug.keystore
java.lang.Exception: Keystore file does not exist: \.android\debug.keystore
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:902)
at java.base/sun.security.tools.keytool.Main.run(Main.java:412)
at java.base/sun.security.tools.keytool.Main.main(Main.java:405) I get this error when i run that link on terminal
keytool -list -v -keystore "C:\Users\yourname\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
try this with your username
SMS verification code request failed: unknown status code: 17042 Invalid format I followed every step still receiving this error
Bro carefully follow this you must have done something wrong
@thetechbrotherss sir i have watched the video more than 5 times you can tell me the issue
There are some problem in your ssh commands sir I run but it was not working so which one working is here in the comment.
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
please read comment your will get the fix
Error brother :
keytool error: java.lang.Exception: Keystore file does not exist: \.android\debug.keystore
java.lang.Exception: Keystore file does not exist: \.android\debug.keystore
at sun.security.tools.keytool.Main.doCommands(Main.java:780)
at sun.security.tools.keytool.Main.run(Main.java:378)
at sun.security.tools.keytool.Main.main(Main.java:371)
Read first comment
For Windows Users Here is the key:
keytool -list -v -keystore "C:\Users\\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Thanks for mentioning it
@@thetechbrotherss
sai username ko apne pc k username se replace krna ha?
@@samiullahbarakzai4638 g blkul
Mere keytool commad identify nahi ho rahi