Firebase Google Sign-In With Jetpack Compose & Clean Architecture - Android Studio Tutorial

  Рет қаралды 60,712

Philipp Lackner

Philipp Lackner

Жыл бұрын

In this video you'll learn how you learn how you can implement Google Sign-In with a Firebase backend in your Kotlin Android app.
⭐ Claim the limited 30% easter discount with EASTER30 during checkout ⭐
pl-coding.com/premium-courses...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
Subscribe to my FREE newsletter for regular Android, Kotlin & Architecture advice!
pl-coding.com/newsletter
Join this channel to get access to perks:
/ @philipplackner
Get the source code for this video here:
github.com/philipplackner/Com...
Join my Discord server:
/ discord
Regular programming advice on my Instagram page: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/philippl...

Пікірлер: 143
@kintanpatel6002
@kintanpatel6002 2 ай бұрын
Some method are deprecated and tell us to use Credential Manager, can we have updated video on Credential Manager?
@adityagarud861
@adityagarud861 Жыл бұрын
This guy on KZbin is a life-saver.
@BlackSkyCrew
@BlackSkyCrew 7 ай бұрын
Your assistance has significantly propelled me towards the launch date, particularly in figuring out Firebase Google Sign-In with Jetpack Compose, implying that I might very well invest in your CI/CD course.
@victorsokoluik4573
@victorsokoluik4573 5 ай бұрын
Thanks, Philipp! Yep, it took a lot of time to adapt your type of navigation to my app, but I did it, and now everything works as expected.
@chiragdhunna990
@chiragdhunna990 Жыл бұрын
Great video video, do make more tutorials like this it will definitely help the community grow!!
@chips056
@chips056 Жыл бұрын
Great video, you never disappoint! Thank you for this one 😊
@kylewhynott6146
@kylewhynott6146 3 ай бұрын
Thanks for the tutorial! I had to build something out more advanced for a project I'm working on, but it was a great tutorial for understanding how to do this with Kotlin and Jetpack Compose. Last time I wrote a major application it was still in Java with Activities, Fragments, and XML Layouts. Love all your videos.
@TheZaurHasanov
@TheZaurHasanov Жыл бұрын
Omg you came back to Firebase again 😍 Thanks so much
@germenwong
@germenwong 8 ай бұрын
As always, wonderful and practical brother. You are really great and have taught me a lot. Please continue to create Compose, integrate Firebase, and Google's
@meetsoni1938
@meetsoni1938 Жыл бұрын
Thank you so much Philip.Your efforts are really Appreciated 🎉❤❤
@androidkotlin-6234
@androidkotlin-6234 Жыл бұрын
Do you know what? I'm developing my application, and just open youtobe for find how to auth with google firebase, and saw your video! You are amazing, white bro!
@Adam0001
@Adam0001 Жыл бұрын
I love it 😍 Thanks Mr.Philipp
@johnpunzak8916
@johnpunzak8916 Жыл бұрын
Suggestion for a new video:. Could you take sign in further and make leaderboards for games? Google did not create a Kotlin version of their leaderboards yet. It would be great to see that. And thank you for your wonderful and amazing videos!!!😊
@hussein9577
@hussein9577 Жыл бұрын
Great content, just as always
@kirwakelvinkering3122
@kirwakelvinkering3122 Жыл бұрын
Thank you so much for this Philip , ever grateful .
@universe8989
@universe8989 Жыл бұрын
Oh my god I love your videos so much, keep making videos pls
@pasdeal
@pasdeal 6 ай бұрын
Im running Android Studio Giraffe | 2022.3.1 Patch 2 and to get the signingReport option to show at 6:37 you now need to CHECK the box "Configure all Gradle tasks during Gradle Sync" under the Experimental tab and then sync your project. Thanks for the guide 🥰
@supersanta4059
@supersanta4059 19 күн бұрын
OMG mate, you saved me right there. Thank you sooo much for that.
@HiltModuleImp
@HiltModuleImp Жыл бұрын
Lol, just got a task to do the same. Right in time))) Thx a lot Philipp
@Joel-if2bg
@Joel-if2bg 5 ай бұрын
For newer verisons of Android Studio (>Flamingo) you need to CHECK the box for "Configure all Gradle tasks during Gradle Sync (this can make Gradle Sync slower)", then Sync Project with Gradle Files
@tundedon
@tundedon Жыл бұрын
Just in time 🙏🏾🙏🏾
@sheikhbilalahmad2689
@sheikhbilalahmad2689 3 ай бұрын
Thank you! Philipp the goat
@universal1755
@universal1755 9 ай бұрын
Thanks, It helped alot. ❤
@falcon1422
@falcon1422 Жыл бұрын
OMG how much i wish you posted this video a week ago😭😭😭
@serlok4688
@serlok4688 Жыл бұрын
Thank you Philip
@sijanneupane
@sijanneupane Жыл бұрын
not now! will be needing this next week!
@sijanneupane
@sijanneupane Жыл бұрын
done and dusted!
@user-ed4kf3yj6p
@user-ed4kf3yj6p Жыл бұрын
Please create biometric authentication using jetpack compose next. I really need it.
@walterdawidretzer465
@walterdawidretzer465 7 ай бұрын
Great Video, its helps me a lot!!!!!!!!!!
@krishnamadke9085
@krishnamadke9085 9 ай бұрын
very nice explaination !
@kinohometv1985
@kinohometv1985 Жыл бұрын
Great, thanks 👍👍
@johnshepard1267
@johnshepard1267 Жыл бұрын
What if we have our own backend and auth system but we want to add a "quick" authorization/registration with Google - can we use the same approach? Will it be possible to somehow map the data of the google account to our account model and save on our servers or create an account with them? Cause I think we would want to also somehow manage users who registered with Google etc?
@spookyhades6231
@spookyhades6231 Жыл бұрын
Wow thanks a lot ... Idk how you manage to do it but every single time I just need help on a topic it just appears in a couple of days 😂
@PhilippLackner
@PhilippLackner Жыл бұрын
Hehe 😁
@eugenewainaina5626
@eugenewainaina5626 3 ай бұрын
I like how he blurred the project support email then in the confirmation part it was plain visible 😅 great video though, this is just what I needed
@4ytonly
@4ytonly Жыл бұрын
Is there any difference about fetching SHA in debug vs release versions of app???
@33t00p
@33t00p 8 ай бұрын
Philipp, thanks for another awesome tutorial. I'm just wondering about LoginScreen always hanging there in the backStack as long as user does not log out. I haven't tried, but if I will want to pop the Backstack, I will always have to popBackStack(ScreenAfterLogin, inclusive=false) Otherwise when we get to LoginScreen, auth request is send to Firebase. So there is always this first (LoginScreen) in the backStack. Maybe it's better to put LoginScreen before calling AppComposable ?
@javimardeveloper
@javimardeveloper Жыл бұрын
Awesome video Phillip, will this be enough auth in order to use google drive API?
@aissamelboudi1494
@aissamelboudi1494 Жыл бұрын
Hello philipp thank for all those videos, can u please lean us how control music in notifications pannel like spotify
@John-qt6qk
@John-qt6qk Жыл бұрын
Thanks
@eduardoruesta5180
@eduardoruesta5180 3 ай бұрын
Cool!! what could be the difference if we want to do this example in a Compose Multiplatform project?
@enriqif
@enriqif Жыл бұрын
Great video Philipp!! I have a problem with the functionality.. in the emulator works perfect but I my physic device, the bottom popup doesn't show... Did this happen to anyone?
@Leon-un2ii
@Leon-un2ii Жыл бұрын
Please make an UI lock screen with a PIN storage like many apps use it. Threema, Telegram, Signal etc. Thanks.
@user-me1ry6lg6d
@user-me1ry6lg6d 5 ай бұрын
Hello sir , i have been following your android tutorials for long now and am grateful. I would like to ask something however , what is the difference between web client id and Server key with regards to this project ?
@davidrichardroca5899
@davidrichardroca5899 6 ай бұрын
Really Thanks for this Great Tutorial. Can you do an other Tutorial of using this authentication to call an Google API like Photos by exemple please. With the Google Dev console settings Pleaaasseee 😊
@chiragredij1734
@chiragredij1734 8 ай бұрын
Hey philipp... So I used Compose and Dagger for it and it works completely fine but there is one issue!! I cant get it to display profile picture which is set... Im using FirebaseUser data class instead of custom class. Any idea why this might be happening?
@Iraskate
@Iraskate 7 ай бұрын
Great tutorial! One issue though, I am trying to save the user's email in the UserData class, but it returns null. Why is that?
@cse9193
@cse9193 Ай бұрын
I am using mvi pattern in my project. Is it correct to send the userData object as a parameter to the profile screen?
@il_benza
@il_benza Жыл бұрын
Hei man, what is the "plugin theme" that you are using for your Android Studio?
@stijndcl
@stijndcl Жыл бұрын
You can see his theme at 6:16
@stijndcl
@stijndcl Жыл бұрын
How does all the coroutine logic in the MainActivity at the end translate to the compose-destinations package for navigation? Are you supposed to just run all of those in your LoginScreen composable instead?
@pico6051
@pico6051 Жыл бұрын
Found anything useful?
@Tsukikof
@Tsukikof 3 ай бұрын
Great job! Thanks a lot, it works perfectly. Can you make firebase sign in with email password also ?
@thangnguyen8899
@thangnguyen8899 6 ай бұрын
Nice
@shashankkumar7958
@shashankkumar7958 Жыл бұрын
Don't know if there is some issue with the code or the API itself but what I observe is when I cancel the google sign in bootom sheet 3-4 times consecutively, the sheet never appears again. Hey @Philipp can you look into this?
@13_adityasharma74
@13_adityasharma74 Жыл бұрын
it's a google play thing. If you cancel the login a few times it won't appear again for 24 hours or if it was triggered in an emulator u can just clear the google play data
@AnandFromDelhi
@AnandFromDelhi Жыл бұрын
next video I would like to see would be Notes app using firebase
@osisuper98
@osisuper98 Жыл бұрын
There is so much we writing outside the composable screens themselves now 🤔. Shit keeps changing.
@dogu0101
@dogu0101 6 ай бұрын
Hi Philipp. Do you have any content to show how to do it for twitter ?
@utusan_bapak
@utusan_bapak 9 ай бұрын
How to periodically start workmanager to monitor the expired state? (Assumed successfully logged in) and the work manager is bound to activity level state
@brianblain3483
@brianblain3483 Жыл бұрын
Heads up! When selecting your email for google auth you covered it up but then at 8:22 you go back to the screen and your email is front and center
@arthurdamous
@arthurdamous Жыл бұрын
Yeah, i've noticed too. Hope no one tries to scam
@balusekhar
@balusekhar Жыл бұрын
Need a tutorial on retrofit with jetpack compose
@omarcode6245
@omarcode6245 11 ай бұрын
Hola phillip como estas gran tutorial, porque no manejaste la logica en el viewmodel como en todos tus videos
@arthurmsiska3800
@arthurmsiska3800 6 ай бұрын
Could you do same OAuth sign in but with Supabase?
@vishnupriya9437
@vishnupriya9437 4 ай бұрын
Hi I have wordpress website I converted using android studio. Everything works fine except the Google login also wordpress signup. Can please help on this. Pls add video on this
@imsosorrybro
@imsosorrybro 5 ай бұрын
damn! thanks for content but why did you do that without layotu? I have an issue but cannot solve it because of it :(
@mklmk-vjhbj
@mklmk-vjhbj 2 ай бұрын
'beginSignIn(BeginSignInRequest): Task' is deprecated. Deprecated in Java 💀💀💀
@slyene6202
@slyene6202 3 ай бұрын
Hi! What's the difference between LaunchedEffect key1 = true and key1 = Unit?
@PhilippLackner
@PhilippLackner 3 ай бұрын
No difference
@ahmedanalattack
@ahmedanalattack 11 ай бұрын
Will this work in kmm compose for ios?
@kyleangelogonzales3989
@kyleangelogonzales3989 Жыл бұрын
Hey Philipp! Love your videos! I'm new to MVVM and Compose. Ive heard that it's not good to use context in viewModels so I would like to learn how to work around these scenarios. I also read that we should avoid using the AndroidViewModel class as it defeats the purpose of having a ViewModel in the first place. Could you make a video teaching us how to properly separate Android specific code from ViewModel's with MVVM and CLEAN practices? Given that a lot of the business logic lives in the ViewModel, how can we: 1. Use android resources 2. Make an object that requires an (activity?) context in response to a button click event 3. Get permissions from button clicks ? With compose and MVVM? 4. Launching an intent when a button is clicked I'm new to all of this, so a tutorial on this would really help me write cleaner and more robust code!
@MindBuilders
@MindBuilders 10 ай бұрын
There's no problem using application context in the ViewModel. The reason why they say not to use context in ViewModels is because you don't want to leak a VIEW context. Application context exists through the duration of the app. That's what the purpose of the AndroidViewModel is, it takes in an Application so you can rely on Application context.
@smaig5196
@smaig5196 11 ай бұрын
what to do if the registration works on the emulator, but not on the protection of the phone. Yes, I gave access to the Internet in manifest . help pleas
@matteoZattera
@matteoZattera Ай бұрын
12:12 BeginSignInRequest is now deprecated, we have to use Credential Manager instead
@P_Atticus
@P_Atticus Жыл бұрын
Can you implement it, but without jetpack?
@carlosmartinezsuarez3541
@carlosmartinezsuarez3541 Жыл бұрын
Hi! I can´t use the GoogleAuthUiClient() :( whyyy? Now is deprecated?
@xanroid
@xanroid Ай бұрын
I now have thousands of users in my Firebase database who are authenticated using their Firebase Google Sign-in UID. Since this method is deprecated, how should we migrate to Credential Manager in this case while we keep the current users ids?
@pico6051
@pico6051 Жыл бұрын
It doesn't look "Clean" putting so much logic in the MainActivity, is this really the best way to achieve it?
@karthikeyan8670
@karthikeyan8670 Ай бұрын
I have tried your code in my android Studio, but error is showing like this CompositionLocal LocalLifecycleOwner not present
@matteoZattera
@matteoZattera Ай бұрын
Can you please make a video using Credential Manager APIs instead of One tap APIs (deprecated)?
@blaupunkt1221
@blaupunkt1221 2 ай бұрын
Hi Philipp! The latest 21.1.0 version of "com.google.android.gms:play-services-auth" deprecates most of your code. Apparently we are supposed to use the Jetpack CredentialManager instead now. Could you make a video about Firebase Google Sign-In using the CredentialManager? I had some difficulties with it. Thank you!
@dzikryhabibie6071
@dzikryhabibie6071 7 ай бұрын
Hello, i try to use the version control to build the app, but my application has a problem, the Google account pop up doesn't appear, what happened? What should I fix, can anyone help me?
@sanjaybhatikar
@sanjaybhatikar 9 ай бұрын
Didn't work with some cryptic error about missing feature in gms.
@chiragredij1734
@chiragredij1734 8 ай бұрын
Why not use Destinations Compose? Is it not mainstream yet?
@mr.chouhan_07
@mr.chouhan_07 7 ай бұрын
brother can u make video also for Facebook Sign-In
@JackSparrow-xd1vp
@JackSparrow-xd1vp Жыл бұрын
Can i get your course in udemy?
@AmalShiwantha-n7b
@AmalShiwantha-n7b 16 күн бұрын
Can you share how to call Facebook login in compose
@diaahelmy6889
@diaahelmy6889 10 ай бұрын
hi can you make app change location
@arthurkopytin9177
@arthurkopytin9177 Жыл бұрын
How to implement it without Compose?
@VasilisBitloops
@VasilisBitloops Жыл бұрын
Wouldn't it make sense to use an AuthenticationProvider interface with a Firebase concretion to be able to a) mock the provider and b) switch the provider to another one in the future?
@mdevelo
@mdevelo 9 ай бұрын
Has anyone got this error "Caller not whitelisted to call this api"? I tried fixing it in so many ways but it didn't work. If someone has solution, please help me. Thank you!
@prarooptrivedi
@prarooptrivedi 7 ай бұрын
can you provide same video for facebook sign in
@SuperSapna007
@SuperSapna007 3 ай бұрын
I tried with your code its not working and not throwing any error. :(
@thecoderui
@thecoderui Жыл бұрын
How did you know that we are working these days to add this feature in our new app? 🤔 Impossible 😂
@superkobke
@superkobke 7 ай бұрын
Damn, my SignIn button is not working!!!!
@ConspiracyCraftersStudio
@ConspiracyCraftersStudio 3 ай бұрын
you probably did onClick = {onSignInClick} and you should onClick = onSignInClick
@meetsoni1938
@meetsoni1938 Жыл бұрын
Hey I am getting this error "unresolved reference: lifecycleScope"
@moisesvalera3597
@moisesvalera3597 Жыл бұрын
Use val coroutineScope = rememberCoroutineScope() instead
@meetsoni1938
@meetsoni1938 Жыл бұрын
@@moisesvalera3597 okay thanks 👍
@BlackSpaceCreation
@BlackSpaceCreation 3 ай бұрын
Anyone else have problems with implementing this? I dont get the google sign in pop up
@wcman007
@wcman007 Ай бұрын
It's depricated please make a tutorial on the new way to sign in with google
@adityagarud861
@adityagarud861 Жыл бұрын
First Comment
@iamvahitkeskin
@iamvahitkeskin 4 ай бұрын
23:58
@trado-dev
@trado-dev 8 ай бұрын
33:01
@TechSciInfo
@TechSciInfo 5 ай бұрын
firebase to android jetpack compose download pdf in app please make video ..
@ffggi-qv5ey
@ffggi-qv5ey 11 ай бұрын
Why writing tests is such an abstract concept. Does noone write tests?
@PhilippLackner
@PhilippLackner 11 ай бұрын
What has that to do with the video?
@efrainarreola7002
@efrainarreola7002 11 ай бұрын
Dagger hilt? 😢😢😢😢
@ahmadab9666
@ahmadab9666 Жыл бұрын
Firebase !!? you said from years ago you won't use firebase again :)
@PhilippLackner
@PhilippLackner Жыл бұрын
For database and storage :)
@Rafa-iy2ng
@Rafa-iy2ng Жыл бұрын
Why not EASTER100? :)
@PhilippLackner
@PhilippLackner Жыл бұрын
Don't try this plz
@Rafa-iy2ng
@Rafa-iy2ng Жыл бұрын
@@PhilippLackner It says that someone already used it :( maybe next time...
@jopadjr
@jopadjr Жыл бұрын
177th...Thanks Philipp. I'm looking at the bundle price and it is currently 359,00€. Is this in Euro?
@stijndcl
@stijndcl Жыл бұрын
There's a € sign so is that really a question?
@jopadjr
@jopadjr Жыл бұрын
@@stijndcl it is a question. Need to double check as there is a comma, Im not familiar with this currency. It might be in thousands. That is why Im asking
@stijndcl
@stijndcl Жыл бұрын
@@jopadjr if it would be thousands then there would be three zeroes, not two.
@jopadjr
@jopadjr Жыл бұрын
@@stijndcl Thanks. I actually checked it in the Australian dollar equivalent. And that comma is confusing as we only used it for thousands. No harm in asking
@royalanimations007
@royalanimations007 11 ай бұрын
Hi Philipp , need your help ,, I am getting 16 similar errors for different libraries ... what should i do 1. Dependency 'androidx.navigation:navigation-common:2.7.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Also, the maximum recommended compile SDK version for Android Gradle plugin 8.1.0 is 33. Recommended action: Update this project's version of the Android Gradle plugin to one that supports 34, then update this project to use compileSdk of at least 34.
@bharathprakash
@bharathprakash 11 ай бұрын
just change the navigation version to 2.6.0 or else you need to download android 14sdk
@royalanimations007
@royalanimations007 11 ай бұрын
@@bharathprakash does it requires hedgehog canary build ? I downloaded SDK. 14 in giraffe, but error persists
@bharathprakash
@bharathprakash 11 ай бұрын
@@royalanimations007 no I had same error I just changed the navigation version to 2.6.0
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 72 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 54 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 3,6 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Kotlin Multiplatform vs Flutter: Which should we use?
4:42
Kei Fujikawa
Рет қаралды 15 М.
The perfect imperfection of Google's Material You
15:47
David Imel
Рет қаралды 410 М.
You're Collecting Your Flows Wrong In Compose | THIS Is Why
11:35
Philipp Lackner
Рет қаралды 26 М.
5 SaaS Ideas You Can Build as a Solo Founder
13:30
Simon Høiberg
Рет қаралды 374 М.
Getting started with Firebase Authentication on Android
14:16
Best practices for saving UI state on Android
20:36
Android Developers
Рет қаралды 37 М.
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 54 МЛН