Firebase Authentication with Custom User Fields in Android
Vložit
- čas přidán 14. 04. 2018
- In the previous Firebase Authentication with Email and Password tutorial we covered how we create users in Firebase.
But the problem was we cannot use any other fields than Email and Password.
In this video we will learn how we can combine Firebase Realtime Database and Authentication together to make User Registration with Custom User Fields in Android.
Below are the links that you should go through before watching this video.
Check the Complete Firebase Auth Series from Here:
• Firebase Authenticatio...
For Firebase Realtime Database Check it Here:
• Firebase Realtime Data...
For the source code of this tutorial visit the below GitHub Repository
goo.gl/miicuY
For more visit: www.simplifiedcoding.net
Please SUPPORT me to create more FREE Content for you. Your one SHARES motivates me a million times.
SHARE this video in your College WhatsApp or Facebook Group. Forward it to your friends who want to learn.
And don't forget to follow us on
Facebook: / simplifiedcoding.net
Twitter: / codesimplified
Google: plus.google.com/+Simplifiedco... - Věda a technologie
Awesome, I been looking for this tutorial in long time. Thank you for your service
Best tutorial ever. Was looking for something like this for a very long time. Thankyou.
Exactly what i was searching for. Thanks a lot for these tutuorials
Awesome, I been looking for this tutorial in long time.
Thank you very muchhhhhhhhhhhhhhhhh
Thank You So Much For The Video. I've been checking for this, since last two months. Finally my search is over. Thanks once again. In my app, I've changed the 'name' field by 'Username' which will be unique for every user. Please upload a video, for how to check if the username or phone number is already registered in database? & if its already registered, it should show an alert to user that, username/phone number is already registered in database.
Good Tutorial sir, you are doing an epic job
After so many search your video give me a solution thank u very much bro..
Thanks for the video, greatly helped, bro plz make a video, showing "how to control user access level of different custom users of Firebase "
Thank you very much 🥰
Because of You I Could Complete My Project
Thnks ,this became very useful for me...
Very helpful..., awesome tutorial
How can we use this but With uid rules on the Database? Cause if we only use auth != null that means that any logged user can modify any data of the DB
sir if I use cloude firestore alternet of Realtime database then it will work fine or need to change anything please reply sir.
Nicely make us understand....Thank you...Bilal Bhai would you make video on Android support different screen sizes...Hope u would consider this
hello am getting this error
E/MultiWindowProxy: getServiceInstance failed!
what might be the problem?
The data is not being saved in Real-time database
Thank u so much for this tutorial...
When I made signapk for phone number authentication its not working its showing me SH1 key not matched bt I cross check SHA1 key is perfectly matched.. so please give me solution
Thank you for all this man. My code worked and it has really saved a lot of my time in my school project. Thank you.
can you help me my data is not storing in Firebase database?
Hello Sir, thank you for this awesome video! can you tell us how we can login using Username and password instead of email id and password, thank you
Hey is there any tutorial how to display the data in rtdb when using firebase auth
i really needed that tutorial
Thank you so much, sir how we will Authentication with mobile number along with custom field or like careem app authentication system, plzz sir waiting for this video,
sir..how can i add log in page into this project?
Very good tutorial video 😁😁😁
You saved my day, thanks!!
Thanks for share this what i need
sir , how to crud firebase Authentication ?? Please help me :(
Bro can u make video on custom claim I am making a app tutor finder I am confused because in welcome page I have two buttons I am a teacher and I am a student I want to build a mechanism that if teacher is already logged in the app open teacher UI and if student is logged in the app open student UI many say custom claim please reply
Sir. how can i create a project like yours but with phone auth.?? i need your help. please
ok...great.....
but still waiting for firebase notifications video....i hope you remember ive been desparately asking 😊
You are awesome! If I make a app an I make a lot of money I will give you a big donation.
hi, i have this error, Make sure to call FirebaseApp.initializeApp(Context) first ?
can you help me?
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference this error is coming logcat
when user fill application admin check this application and approval in Firebase then user can use this this particuler button . how to do that
sir, mare mobile authentication after email signin karavu hoy to kai rite karavu and login time mare username and passoword rakhava so how can do ??
Hi Sir, I can't get the string registration_success. What should I do?
Sir, why is it showing registration unsuccessful, though I have written the exact same code?
I got this problem :a network error (such as timeout interrupted connection or unreachable host) has occurred somebody help me please!
thank u so much, i almost cried when I cant do this
How to add the Uid also to the class and add it to the database ?
The app is running but it's showing that not registered...how to resolve the issue?
Can you add the function of updating user photos to firebase, please
but what if we verify no. that it exists and then register user
Sir, how to save uid in firestore?
Please help me
nice tutorial
can you please create a video on Firebase Admin SDK (Sign in with custom tokens)
Bilal brother i ran your code, it is adding users but not adding their data in database... please can you check. i updated everything but iam also not getting toast registered successfully.. i dont know why ? please check
I will not give you thank you, because it's will very small for you.. It was very important video for me... thanks a lot...
thank you
Please make same video for phone auth database using realtime
But How to give permission to the all users by this way
Because We have only give permission to one user by this method to sign in with security..
If we write == true so your data is in secure
Hello
i m using Cloud Firestore Database so How can i do?
Thanks man👍👍
Sir, update this video. Now firebase has lot more option. Like custom claims, or custom UID . So very few video in CZcams about firebase custom claims. No one knows how to use this feature with Android app
can u make a kotlin sample of this sir?
No properties to serialize found on class com.example.myfirebaseauthenticationdatabase.User
It says the helper class User has no properties to serialize
That's the error coming . Help me Please !!!
same
Why the node "User" is not being created in the RealTime DB, but in the authentication the entry is being stored?
Same prblm
@@WBAABW I fixed the problem by changing the reading and writing permission from 'false' to 'true' and publishing that settings in the Rules section in your real-time database. Hope the same will fix your issue too. Thanks.
How to retrieve the information, let say the name and display it in the another activity? For example the profile activity.
Check this Firebase Realtime Database Tutorial for Android: czcams.com/play/PLk7v1Z2rk4hj6SDHf_YybDeVhUT9MXaj1.html
how can i get the phone number and the name after login ?
Use different activity and class to get what ever details u need and push those data's as a object in to the firebase with the help of individual user Id.
Which is shown as per this video
Nice Tutorial but what happens if the user's username needs to be unique?
Email is unique here.
thank you dude
you are the best!
The values are not getting stored in the database but they are getting saved as user? Any help?
Hello. Try to update the gradle dependence of firebase-database for latest version.
How may i get the current users "name"
How to check email existence in firebase already?
How to add new value like as age from other page . This means I want to add new value like as age of user from profile page than how I can do it please help.
if you find the solve tell me please
Okkkk
database doesn't write my infomation, always shows as null.. sucks
Hello sir,
Can we change the uid which is auto generated when a user is registered in authentication?
Thank you.
no it can not be changed because its auto generated id by google firebase
Trailer zone
Ok
Thank you
how did you get the user id, when firebase only registered the user? in your code, you are asking for the user id currently logged in and there is non in this case. so the getCurrentlyUser.getUid() will give nullpointer error and the app will crash.
Every registered user has an unique id. Cross check the steps carefully
@@SimplifiedCoding I know every registered user has a unique id. but you getting that id through FirebaseAuth.getInstance().getCurrentUser().getUid() in this case the user has to be logged in first to get his id otherwise it will be null.
you are just Creating the user which will give it the id. but to retrieve that id the user has to be logged.
@@SimplifiedCoding task.getResult().getUser().getUid(); this will give the user id during the registration. your code give null value maybe it's outdated.
When a user is registered successfully, it is also logged in
Sir the tutorial isn't working for me because the attributes aren't getting stored in the database.
i am facing a similar problem .did you find a solution to the problem?
Hi I'm a student I want of you to help me please for doing a mobile app If a possible
for this we need to have our database rules as public? because if we set the rules for authenticated users only then it would not be possible to signup with this method. Isn't it insecure to set the rules public?
No.. first we are signing up then setting the data.. so you dont need to make your db public.
@@SimplifiedCoding thanks man... And i also need help with something else... Suppose i want to make the roll number of a student as its unique id and store the user data under it. How do i do that?
Mine keep on crashing. i did and followed everything in your tutorial. pls help me.
Check logcat and see the error
hi bro, when i tried the same it is creating the new account but it is not saving the user information in realtime database can you help me with the issue please?
like for me
hi Talib, actually i found out the solution for myself, you just have to go to the rules section and make both read and write as != null. it worked for me, hope it would for you aswel.
hi Chandan my User.class add getter and setter method it is that not work.In fact work now
Hey bro, I'm new to android programming and firebase. Can you show me how you put != null in your rules?
it worked for me too, thanks
thanks
How can I edit these custom fields? I need help!
Diego Martínez Goncalves make an activity called update profile and get the values from firebase database for that user in edittexts and then simply edit those values and click on submit. You'll have to know how to update values in firebase database for this.
very well
Nothing happens on button click
can some one tell me why he not key in the password also
finally, thanks omg
How to do this for iOS
I got no error message, tha app was forced closed. What happen?
Krisandi Gustaram Check in logcat
same situation
Check logcat for the error
Why is your program doing fine sir? On ours, it has an error.
Process: com.sossyann.calwasteapp, PID: 24354
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sossyann.calwasteapp/com.sossyann.calwasteapp.Registration}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3133)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3243)
at android.app.ActivityThread.access$1000(ActivityThread.java:218)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1718)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6917)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at com.sossyann.calwasteapp.Registration.onCreate(Registration.java:43)
at android.app.Activity.performCreate(Activity.java:6609)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3086)
How should I solve this sir?
Hi, i made it but the accounts saved in the authentication only, nothing in the database
Mazen Osama have you solved the issue? Me too facing same problem.
@@reassume4826 I solved it
@@mezomezozezo how did you solve that? Please help me
@@janani1069 ok, give me an hour till i open from my pc
@@janani1069 check this repository
github.com/mazenoss/learnHubApp
why we donot store password ?
hi please help me i have 1 question
Say
@@SimplifiedCoding i want to create and block one user account in firebess in thunkable
Explain clearly
@@SimplifiedCoding sir. i want block one user account in firebess how we can it
SOMEONE HAVE THE XML.FILE PLEASE , HE D'ONT SHOW IT
You can get the source code.. check description
Simplified Coding for Main.Activity ?
Sir my name,email,phone is not storing in database. kindly send me your email so i can send you screenshot
jakkash
Bhai please make video in hindi.. Thanks. Bhai how to use mysql to store data in appybuilder.. Plz reply thanks
134 chats XD
czcams.com/video/7Yc3Pt37coM/video.html shama said "tum ho dimag sy pedal" 😂🤣