Firebase Authentication with Jetpack Compose - Android Studio Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 พ.ย. 2022
  • In this tutorial, I demonstrate how you can use Firebase Authentication with Jetpack Compose. The tutorial is for beginners who are trying to understand Firebase and use Compose.
    Get the initial source code of the project here:
    github.com/arfindev/FirebaseA...
    Get the full source code from here:
    github.com/arfindev/FirebaseA...
    Follow me on Instagram:
    / arfin.coding
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 31

  • @vaibhavpatil8297
    @vaibhavpatil8297 ปีที่แล้ว

    Content is really good, please continue making videos.Your explanation was also very on point for me.

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว

      Thank you very much. I will try 😊

  • @abbasadrali
    @abbasadrali 9 หลายเดือนก่อน

    one of the best one so far
    Thanks bro

    • @arfinhosain
      @arfinhosain  9 หลายเดือนก่อน

      Thank You so much.

  • @ArsenKorytskyi
    @ArsenKorytskyi 4 หลายเดือนก่อน

    @ArsenKorytskyi
    13 секунд тому
    when I click sign up, I receive this toast message "The supplied auth credential is incorrect, malformed or has expired.", what could be the problem? Thanks for the video.

  • @user-lj9eb8sm6z
    @user-lj9eb8sm6z 11 หลายเดือนก่อน

    Thank You buddy

    • @arfinhosain
      @arfinhosain  11 หลายเดือนก่อน

      You are most welcome

  • @andreasavetisian5679
    @andreasavetisian5679 7 หลายเดือนก่อน

    Hey, thank you for this video. When I build gradle, there are no errors. But when I try to run the app (launch my virtual device) I get this error: "[HILT] Unsupported metadata version. Check that your Kotlin version is >= 1.0: java.lang.IllegalStateException: Unsupported metadata version. Check that your Kotlin version is >= 1.0". Is it because of plugins or simply incompatibility between kotlin version and Hilt? I tried to find a soluction to these error, but couldn't find anything helpful.

    • @arfinhosain
      @arfinhosain  7 หลายเดือนก่อน

      Welcome, this could be a problem with kotlin and hilt version. Could you please try upgrading the version of both of these and try to build again?

  • @rma1563
    @rma1563 ปีที่แล้ว

    sometimes the register/login goes into a inifinte loop. when i click on sign up/sign button the loading icon appears forever. how to solve it? And Im not able to verify email, apparently the email send from firebase is almost always expired. Any help?

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว

      Hi, sorry for the late reply. It is not possible to say anything without looking at the exact code that what's happening there. But I suggest you to put some log statement to observe the logcat actually what's going wrong. Also you may check your firebase security rules. You may share your repo. If you are still stuck.

  • @kdbrian.d3v
    @kdbrian.d3v ปีที่แล้ว

    This is really amazing. Do you have a play list for beginners in compose. Could come in handy

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว +3

      Not yet, but I recommend you to check philip lackner TH-cam channel, he has a good Playlist about it.

  • @atakanaktas48
    @atakanaktas48 ปีที่แล้ว

    Hi, in the button's scope.launch i can't reach viewModel.registerUser. When i write the viewModel it doesnt show me the registerUser even tho i followed the video and write everything with you

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว +1

      Hi there, if you can access your ViewModel then you will also be able to access registeruser function. Check if you are making the function private in ViewModel or not. Or check your curly braces.

    • @atakanaktas48
      @atakanaktas48 ปีที่แล้ว

      @@arfinhosain i dont know how but i fixed it thank you

  • @user-ECEM
    @user-ECEM ปีที่แล้ว

    Hi, thanks for the excellent tutorial. But please can you explain in more detail but shortly, why did you use AppModule, flow, singleton class, and also other ViewModules

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว +3

      Hi There, Thanks for the appreciation. I understand it is hard to understand all these concepts for newbies. What I tried is to do the project in the very best way. Never Mind. Let me explain to you why we are using them.
      AppModule :
      Since we are using dependency injection in this project, we must keep our dependencies somewhere. We are using "AppModule", which is a singleton. Our "AppModule" provides all the dependencies (FirebaseAuth, Repository, etc.) as an example. That way, we can inject them whenever we need them. Take a closer look at the "ViewModel" and you'll see that it uses the "Repository". We can inject the "Repository" here because it has already been specified in our AppModule.
      If you still have confusing, Just leave this topic.
      Dependency Injection is an advanced topic. It is my fault that I used it here. In my next tutorial, I'll keep that in mind.
      ViewModels - This is very easy to understand. The ViewModel class allows data to survive configuration changes such as screen rotations. The ViewModel class also helps in implementing the MVVM(Model-View-ViewModel) design pattern.
      Flow :
      It keeps track of our state as an observer. We observe our user when he clicks on a button or tries to do something with our app. Our ViewModel will be told that our user is trying to do this and that, whatever he does.
      There are different kinds of Flows. I used "Channel" for this tutorial. It's just because of our "UiEvents". As soon as our user registers, he can see a Toast message. It is important that our user sees this Toast message only once, not twice. If we do not use channel here, and our user rotates the screen, which fires a configuration change, then Toast will fire again. With channel, we can ensure that the Toast does not appear twice.
      Singleton Class:
      Singleton Pattern ensures that only one instance would be created and it would act as a single point of access.
      I hope the explanation clears up your confusion.

    • @user-ECEM
      @user-ECEM ปีที่แล้ว

      @@arfinhosain You are great! Thank you so much!

  • @horsat8743
    @horsat8743 ปีที่แล้ว

    I did line by line, but it doesn't work for me. Won't sign users up and clicking on the sign in option also doesn't work.

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว

      Could you please share your GitHub repository also what's the error you are getting inside logcat?

  • @ashrefali884
    @ashrefali884 ปีที่แล้ว +3

    Excellent tutorial but if you can explain more clear then this will be the first video covering firebase auth with jetpack compose with flow

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว +1

      Thank You So Much ♥. I will try my best in the future.

  • @new_dev_looper
    @new_dev_looper 11 หลายเดือนก่อน

    can you update the code on git? because i cant find the full code.

    • @arfinhosain
      @arfinhosain  11 หลายเดือนก่อน

      Have you tried changing the Branch।? Iam।sure full code will be there

  • @Domo22xD
    @Domo22xD ปีที่แล้ว

    Good. Nice job. Everything was nice explained. Just one thing, you didn't upload whole code in your github repo.

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว +1

      Thank you so much. Oh I am sorry about that, but unfortunately I lost the project file so it's not possible to push now. But you can ask me here if you have any questions.

  • @smaig5196
    @smaig5196 ปีที่แล้ว

    you dont have data packedge on your github repository

    • @arfinhosain
      @arfinhosain  ปีที่แล้ว

      Are you sure about that? Have you switched the branch of the repository?

  • @vickramodero6971
    @vickramodero6971 7 หลายเดือนก่อน

    There's no full source code for the project, they're all initial projects

    • @arfinhosain
      @arfinhosain  7 หลายเดือนก่อน

      Could you please try changing the branch