Тёмный

Firebase Authentication with Jetpack Compose - Android Studio Tutorial 

Arfin Hosain
Подписаться 203
Просмотров 14 тыс.
50% 1

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

Наука

Опубликовано:

 

19 ноя 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 😊
@ArsenKorytskyi
@ArsenKorytskyi 3 месяца назад
@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.
@abbasadrali
@abbasadrali 9 месяцев назад
one of the best one so far Thanks bro
@arfinhosain
@arfinhosain 9 месяцев назад
Thank You so much.
@andreasavetisian5679
@andreasavetisian5679 6 месяцев назад
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 6 месяцев назад
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.
@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 Год назад
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!
@kdbrian.d3v
@kdbrian.d3v Год назад
This is really amazing. Do you have a play list for beginners in compose. Could come in handy
@arfinhosain
@arfinhosain Год назад
Not yet, but I recommend you to check philip lackner RU-vid 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 Год назад
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
@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 Год назад
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 Год назад
Thank You So Much ♥. I will try my best in the future.
@user-lj9eb8sm6z
@user-lj9eb8sm6z 11 месяцев назад
Thank You buddy
@arfinhosain
@arfinhosain 11 месяцев назад
You are most welcome
@new_dev_looper
@new_dev_looper 10 месяцев назад
can you update the code on git? because i cant find the full code.
@arfinhosain
@arfinhosain 10 месяцев назад
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 Год назад
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 6 месяцев назад
There's no full source code for the project, they're all initial projects
@arfinhosain
@arfinhosain 6 месяцев назад
Could you please try changing the branch
Далее
Full Guide to Jetpack Compose Effect Handlers
24:56
Просмотров 89 тыс.
Liquid Bottom Navigation UI Design in Jetpack Compose
10:09
The Story of Next.js
12:13
Просмотров 556 тыс.
Красиво, но телефон жаль
0:32
Просмотров 1,4 млн
Choose a phone for your mom
0:20
Просмотров 7 млн