Firebase Authentication with Custom User Fields in Android

Sdílet
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

Komentáře • 145

  • @tenngawanghero
    @tenngawanghero Před 5 lety +4

    Awesome, I been looking for this tutorial in long time. Thank you for your service

  • @afaqurrehmankhan3133
    @afaqurrehmankhan3133 Před 3 lety +1

    Best tutorial ever. Was looking for something like this for a very long time. Thankyou.

  • @rishabhagarwal9935
    @rishabhagarwal9935 Před 5 lety

    Exactly what i was searching for. Thanks a lot for these tutuorials

  • @suhaibshanaa508
    @suhaibshanaa508 Před 4 lety

    Awesome, I been looking for this tutorial in long time.
    Thank you very muchhhhhhhhhhhhhhhhh

  • @AbdulRahim-ft9pd
    @AbdulRahim-ft9pd Před 6 lety +1

    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.

  • @miles_whalberg
    @miles_whalberg Před 6 lety +1

    Good Tutorial sir, you are doing an epic job

  • @SureshKumar-kd3fx
    @SureshKumar-kd3fx Před 5 lety

    After so many search your video give me a solution thank u very much bro..

  • @mdhabibtalukdar
    @mdhabibtalukdar Před 4 lety +2

    Thanks for the video, greatly helped, bro plz make a video, showing "how to control user access level of different custom users of Firebase "

  • @meldrickfernandes3645
    @meldrickfernandes3645 Před 2 lety

    Thank you very much 🥰
    Because of You I Could Complete My Project

  • @virajgamdha5328
    @virajgamdha5328 Před 4 lety +1

    Thnks ,this became very useful for me...

  • @freedmoresidume
    @freedmoresidume Před 5 lety

    Very helpful..., awesome tutorial

  • @mrkansas
    @mrkansas Před 5 lety +3

    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

  • @sujanpaul5572
    @sujanpaul5572 Před 5 lety +1

    sir if I use cloude firestore alternet of Realtime database then it will work fine or need to change anything please reply sir.

  • @MrMarimoSan
    @MrMarimoSan Před 4 lety

    Nicely make us understand....Thank you...Bilal Bhai would you make video on Android support different screen sizes...Hope u would consider this

  • @erickjuma9558
    @erickjuma9558 Před 5 lety +1

    hello am getting this error
    E/MultiWindowProxy: getServiceInstance failed!
    what might be the problem?
    The data is not being saved in Real-time database

  • @yogeshpol4414
    @yogeshpol4414 Před 4 lety

    Thank u so much for this tutorial...

  • @neoniknikhil
    @neoniknikhil Před 6 lety

    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

  • @bonnie5342
    @bonnie5342 Před 5 lety

    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.

    • @samjones50
      @samjones50 Před 4 lety +1

      can you help me my data is not storing in Firebase database?

  • @aaqiljamal3932
    @aaqiljamal3932 Před 5 lety

    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

  • @loudeternitygaming2327

    Hey is there any tutorial how to display the data in rtdb when using firebase auth
    i really needed that tutorial

  • @BilalKhan-ln8tn
    @BilalKhan-ln8tn Před 4 lety

    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,

  • @muhammadadlinb.aliamran8917

    sir..how can i add log in page into this project?

  • @vauxique
    @vauxique Před 5 lety

    Very good tutorial video 😁😁😁

  • @fakhrymubarak8957
    @fakhrymubarak8957 Před 3 lety

    You saved my day, thanks!!

  • @temangoding
    @temangoding Před 5 lety

    Thanks for share this what i need

  • @deckyilhamsyahputra5518
    @deckyilhamsyahputra5518 Před 6 lety +2

    sir , how to crud firebase Authentication ?? Please help me :(

  • @nabeeltech7885
    @nabeeltech7885 Před 5 lety

    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

  • @nurwahyuddi4767
    @nurwahyuddi4767 Před 6 lety

    Sir. how can i create a project like yours but with phone auth.?? i need your help. please

  • @Khan__Usman
    @Khan__Usman Před 6 lety

    ok...great.....
    but still waiting for firebase notifications video....i hope you remember ive been desparately asking 😊

  • @johnjeremih
    @johnjeremih Před 5 lety +1

    You are awesome! If I make a app an I make a lot of money I will give you a big donation.

  • @businessesbusiness2624

    hi, i have this error, Make sure to call FirebaseApp.initializeApp(Context) first ?
    can you help me?

  • @crashcartjoe6783
    @crashcartjoe6783 Před 5 lety +1

    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference this error is coming logcat

  • @subarnanaskar1970
    @subarnanaskar1970 Před 3 lety

    when user fill application admin check this application and approval in Firebase then user can use this this particuler button . how to do that

  • @devidpatel7439
    @devidpatel7439 Před 3 lety

    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 ??

  • @miguelaquino45
    @miguelaquino45 Před 4 lety

    Hi Sir, I can't get the string registration_success. What should I do?

  • @AlishaKhan-mu1gq
    @AlishaKhan-mu1gq Před 4 lety

    Sir, why is it showing registration unsuccessful, though I have written the exact same code?

  • @Aman-vx7zr
    @Aman-vx7zr Před 5 lety

    I got this problem :a network error (such as timeout interrupted connection or unreachable host) has occurred somebody help me please!

  • @tungpham3487
    @tungpham3487 Před 2 lety

    thank u so much, i almost cried when I cant do this

  • @remasteredbass-3d162
    @remasteredbass-3d162 Před 5 lety

    How to add the Uid also to the class and add it to the database ?

  • @swesavithiri8629
    @swesavithiri8629 Před 5 lety

    The app is running but it's showing that not registered...how to resolve the issue?

  • @hoangchuvan9175
    @hoangchuvan9175 Před 5 lety

    Can you add the function of updating user photos to firebase, please

  • @10tanuj1
    @10tanuj1 Před 5 lety

    but what if we verify no. that it exists and then register user

  • @EkoPrasetyo-jm2mq
    @EkoPrasetyo-jm2mq Před 5 lety

    Sir, how to save uid in firestore?
    Please help me

  • @nonamealx1085
    @nonamealx1085 Před 4 lety

    nice tutorial

  • @anukulnarkhede1749
    @anukulnarkhede1749 Před 4 lety

    can you please create a video on Firebase Admin SDK (Sign in with custom tokens)

  • @farisfarley8730
    @farisfarley8730 Před 5 lety

    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

  • @md.asaduzzamannur815
    @md.asaduzzamannur815 Před 5 lety

    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...

  • @echotech0
    @echotech0 Před 5 měsíci

    thank you

  • @pushkarprabhat7152
    @pushkarprabhat7152 Před 3 lety

    Please make same video for phone auth database using realtime

  • @yashpalsingh4427
    @yashpalsingh4427 Před 3 lety

    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

  • @ashwinijawale2358
    @ashwinijawale2358 Před 4 lety

    Hello
    i m using Cloud Firestore Database so How can i do?

  • @lokeshjawale1562
    @lokeshjawale1562 Před 4 lety

    Thanks man👍👍

  • @skjakaria9412
    @skjakaria9412 Před 2 lety

    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

  • @sabrunjamil3931
    @sabrunjamil3931 Před 5 lety

    can u make a kotlin sample of this sir?

  • @sadiqueilyas2025
    @sadiqueilyas2025 Před 3 lety +1

    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 !!!

  • @sksalmanhaider8429
    @sksalmanhaider8429 Před 4 lety +1

    Why the node "User" is not being created in the RealTime DB, but in the authentication the entry is being stored?

    • @WBAABW
      @WBAABW Před 4 lety

      Same prblm

    • @sksalmanhaider8429
      @sksalmanhaider8429 Před 4 lety

      @@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.

  • @alistairollenrenshaw1700

    How to retrieve the information, let say the name and display it in the another activity? For example the profile activity.

    • @SimplifiedCoding
      @SimplifiedCoding  Před 6 lety +1

      Check this Firebase Realtime Database Tutorial for Android: czcams.com/play/PLk7v1Z2rk4hj6SDHf_YybDeVhUT9MXaj1.html

  • @funnychannel1169
    @funnychannel1169 Před 5 lety +5

    how can i get the phone number and the name after login ?

    • @SureshKumar-kd3fx
      @SureshKumar-kd3fx Před 5 lety

      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

  • @hristoplamenov1942
    @hristoplamenov1942 Před 4 lety +1

    Nice Tutorial but what happens if the user's username needs to be unique?

  • @lendraerdiansah1282
    @lendraerdiansah1282 Před 4 lety

    thank you dude

  • @serj5125
    @serj5125 Před 4 lety

    you are the best!

  • @palashjain3543
    @palashjain3543 Před 5 lety

    The values are not getting stored in the database but they are getting saved as user? Any help?

    • @eDR10x
      @eDR10x Před 4 lety

      Hello. Try to update the gradle dependence of firebase-database for latest version.

  • @youcoool12
    @youcoool12 Před 4 lety

    How may i get the current users "name"

  • @rishavthecoder5402
    @rishavthecoder5402 Před 4 lety

    How to check email existence in firebase already?

  • @arvindvishwakarma7800
    @arvindvishwakarma7800 Před 5 lety

    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.

  • @oshadaattanayake7313
    @oshadaattanayake7313 Před 3 lety +1

    database doesn't write my infomation, always shows as null.. sucks

  • @pbansari14
    @pbansari14 Před 5 lety

    Hello sir,
    Can we change the uid which is auto generated when a user is registered in authentication?
    Thank you.

  • @mohamshualh
    @mohamshualh Před 5 lety

    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.

    • @SimplifiedCoding
      @SimplifiedCoding  Před 5 lety

      Every registered user has an unique id. Cross check the steps carefully

    • @mohamshualh
      @mohamshualh Před 5 lety

      @@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.

    • @mohamshualh
      @mohamshualh Před 5 lety

      @@SimplifiedCoding task.getResult().getUser().getUid(); this will give the user id during the registration. your code give null value maybe it's outdated.

    • @SimplifiedCoding
      @SimplifiedCoding  Před 5 lety

      When a user is registered successfully, it is also logged in

  • @divyanshtripathi479
    @divyanshtripathi479 Před 5 lety

    Sir the tutorial isn't working for me because the attributes aren't getting stored in the database.

    • @yogeshkuriyavar9688
      @yogeshkuriyavar9688 Před 5 lety +3

      i am facing a similar problem .did you find a solution to the problem?

  • @user-kc3wt5fr8b
    @user-kc3wt5fr8b Před 4 lety

    Hi I'm a student I want of you to help me please for doing a mobile app If a possible

  • @HamzaKhan-ku9yp
    @HamzaKhan-ku9yp Před 5 lety

    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?

    • @SimplifiedCoding
      @SimplifiedCoding  Před 5 lety +1

      No.. first we are signing up then setting the data.. so you dont need to make your db public.

    • @HamzaKhan-ku9yp
      @HamzaKhan-ku9yp Před 5 lety

      @@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?

  • @thefilipinakhaleesi8768

    Mine keep on crashing. i did and followed everything in your tutorial. pls help me.

  • @ChandanKBC100
    @ChandanKBC100 Před 5 lety

    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?

    • @talibsan1573
      @talibsan1573 Před 5 lety

      like for me

    • @ChandanKBC100
      @ChandanKBC100 Před 5 lety +1

      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.

    • @talibsan1573
      @talibsan1573 Před 5 lety

      hi Chandan my User.class add getter and setter method it is that not work.In fact work now

    • @markpanabe8546
      @markpanabe8546 Před 5 lety

      Hey bro, I'm new to android programming and firebase. Can you show me how you put != null in your rules?

    • @ManojMenpadi
      @ManojMenpadi Před 5 lety

      it worked for me too, thanks

  • @juniordesirebolegue8773

    thanks

  • @gallumieres
    @gallumieres Před 6 lety

    How can I edit these custom fields? I need help!

    • @rohankhatri07
      @rohankhatri07 Před 6 lety

      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.

  • @shahzebmushtaq1297
    @shahzebmushtaq1297 Před 5 lety

    very well

  • @shakiranavlekar6125
    @shakiranavlekar6125 Před 5 lety

    Nothing happens on button click

  • @justmei2855
    @justmei2855 Před 3 lety

    can some one tell me why he not key in the password also

  • @avardanadirta790
    @avardanadirta790 Před 4 lety

    finally, thanks omg

  • @frootyloops8200
    @frootyloops8200 Před 3 lety

    How to do this for iOS

  • @krisandi100
    @krisandi100 Před 6 lety +2

    I got no error message, tha app was forced closed. What happen?

    • @subrahmanyamabhishekay5871
      @subrahmanyamabhishekay5871 Před 6 lety

      Krisandi Gustaram Check in logcat

    • @thefilipinakhaleesi8768
      @thefilipinakhaleesi8768 Před 6 lety

      same situation

    • @SimplifiedCoding
      @SimplifiedCoding  Před 6 lety

      Check logcat for the error

    • @thefilipinakhaleesi8768
      @thefilipinakhaleesi8768 Před 6 lety

      Why is your program doing fine sir? On ours, it has an error.

    • @thefilipinakhaleesi8768
      @thefilipinakhaleesi8768 Před 6 lety

      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?

  • @mezomezozezo
    @mezomezozezo Před 5 lety

    Hi, i made it but the accounts saved in the authentication only, nothing in the database

    • @reassume4826
      @reassume4826 Před 5 lety

      Mazen Osama have you solved the issue? Me too facing same problem.

    • @mezomezozezo
      @mezomezozezo Před 5 lety

      @@reassume4826 I solved it

    • @janani1069
      @janani1069 Před 4 lety

      @@mezomezozezo how did you solve that? Please help me

    • @mezomezozezo
      @mezomezozezo Před 4 lety

      @@janani1069 ok, give me an hour till i open from my pc

    • @mezomezozezo
      @mezomezozezo Před 4 lety

      @@janani1069 check this repository
      github.com/mazenoss/learnHubApp

  • @rebazomer5635
    @rebazomer5635 Před 5 lety

    why we donot store password ?

  • @toptv1681
    @toptv1681 Před 5 lety

    hi please help me i have 1 question

    • @SimplifiedCoding
      @SimplifiedCoding  Před 5 lety

      Say

    • @toptv1681
      @toptv1681 Před 5 lety

      @@SimplifiedCoding i want to create and block one user account in firebess in thunkable

    • @SimplifiedCoding
      @SimplifiedCoding  Před 5 lety

      Explain clearly

    • @toptv1681
      @toptv1681 Před 5 lety

      @@SimplifiedCoding sir. i want block one user account in firebess how we can it

  • @gregcalixte2170
    @gregcalixte2170 Před 4 lety

    SOMEONE HAVE THE XML.FILE PLEASE , HE D'ONT SHOW IT

  • @samjones50
    @samjones50 Před 4 lety

    Sir my name,email,phone is not storing in database. kindly send me your email so i can send you screenshot

  • @shukalsiddharth4452
    @shukalsiddharth4452 Před 5 lety

    jakkash

  • @mohd.aadilads3889
    @mohd.aadilads3889 Před 6 lety

    Bhai please make video in hindi.. Thanks. Bhai how to use mysql to store data in appybuilder.. Plz reply thanks

  • @AnthonySlater
    @AnthonySlater Před 5 lety

    134 chats XD

  • @03zeeshii
    @03zeeshii Před 3 lety

    czcams.com/video/7Yc3Pt37coM/video.html shama said "tum ho dimag sy pedal" 😂🤣