Flutter Google Sign In using Firebase | Flutter Firebase Auth Tutorial iOS, Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • 💼 Book a meeting: cutt.ly/Pegxp5rA
    💎 Ultimate Flutter UI Kit: cutt.ly/3w6tqwFA
    In this video, I am going to show you an easy way to integrate Google Sign In Authentication using Firebase into your Flutter application. We will take a look at setting using our Firebase Project to support Google Sign In Authentication and then use the firebase_auth and firebase_core plugins to authenticate our user using Google Sign In into our Flutter project. Moreover, this tutorial will show you how to use the Firebase auth package to get the authenticated user profile information using the Firebase Auth package, and then display this information within our Flutter app. This guide will help you set up and navigate through the process of adding Google Sign In with the help of Firebase into your Flutter application. This is an excellent guide for beginner Flutter developers.
    Resources:
    Source Code: cutt.ly/EwWq9Daa
    Firebase Core: pub.dev/packag...
    Firebase Auth: pub.dev/packag...
    Socials:
    Website: hussainmustafa...
    Github: github.com/hus...
    LinkedIn: / hussain-mustafa-960920184
    Twitter: / hussain34274892
    Buy Me A Coffee: www.buymeacoff...
    #flutter #firebasetutorial #firebaseauth #firebaseauthentication

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

  • @isyrafismail7801
    @isyrafismail7801 11 หลายเดือนก่อน +2

    Love it when you do the code with the explanation even on the simple thing so newbie like me can be more understand. Subscribed!

  • @utpalgaurav14
    @utpalgaurav14 7 หลายเดือนก่อน +1

    Your video is a lifesaver. Best tutorial video on TH-cam.

  • @rafaymushtaq2316
    @rafaymushtaq2316 11 หลายเดือนก่อน +3

    Sir, can you make the tutorial on push notification using firebase messaging? How to save fcm token in database and most important thing how we trigger automatic notification for example admin add some products it automatically push notification to user about adding product ❤. 😊

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

      OK I'll try to make a video on this subject.

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

      @@m_hussain_mustafa Thank you sir. I will wait.

  • @ArjunAR06
    @ArjunAR06 10 หลายเดือนก่อน +3

    Awesome explanations!. I'm just starting with frameworks and I like Flutter more than React. What do you suggest me to go with? I'm confused what the industry actually needs(Flutter vs React)

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน +1

      Flutter and React Native both are excellent choice. However, there are more React developers jobs in the market.

  • @NithyaAlagupandian
    @NithyaAlagupandian 11 หลายเดือนก่อน +1

    can you please upload fb login integration with firebase using flutter?
    it would be very helpfull for me can you upload more flutter related videos because you are explaining very clear and neat
    Awesome

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

      Thank you. I’ll try doing a video on fb login using Firebase.

  • @moneyman-ne9lw
    @moneyman-ne9lw 11 หลายเดือนก่อน +2

    Thank you for this awesome tutorial.

  • @hah407
    @hah407 3 หลายเดือนก่อน +1

    my build doesnt have an app folder
    edit: youre supposed to run it on an android first haha. i used an emulator and tried it on my android phone too.
    the android googel authworked for me.
    i havent tried the ios since i dont think i have an ios simulator.
    gonna try it!

    • @m_hussain_mustafa
      @m_hussain_mustafa  3 หลายเดือนก่อน

      Awesome to hear you figured it out. :)

    • @hah407
      @hah407 2 หลายเดือนก่อน

      @@m_hussain_mustafa thank you ive been watching your videos and they help a lot

  • @mozun7926
    @mozun7926 6 หลายเดือนก่อน +1

    the numbers in the beginning where do i get it, it gives me error on the firebase_auth

    • @m_hussain_mustafa
      @m_hussain_mustafa  6 หลายเดือนก่อน

      What number are you referring to?

  • @mozun7926
    @mozun7926 6 หลายเดือนก่อน +1

    flutterfire configure line is not working with me what do i do?

    • @m_hussain_mustafa
      @m_hussain_mustafa  6 หลายเดือนก่อน

      Hi, what error are you experiencing?

  • @vickymoreno3977
    @vickymoreno3977 7 หลายเดือนก่อน +1

    Hello! Thanks for the tutorial, very easy to follow along and understand! But I get this error when trying out the app in my own phone.
    Unable to process request due to missing initial state. This may happen if browser sessionStorage is inaccessible or accidentally cleared. Some specific scenarios are - 1) Using IDP-Initiated SAML SSO. 2) Using signInWithRedirect in a storage-partitioned browser environment.
    I have Firefox as the default browser. I have noticed it doesn't happen when using Brave or Chrome. I suppose is has to do with Firefox privacy configurations, but is there a way to sign in that doesn't make this error show up?

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

      Hi,
      This tutorial focuses its instructions specifically for iOS and Android I believe web apps might require additional configuration not mentioned in this tutorial.

  • @WE-vd8ux
    @WE-vd8ux 3 หลายเดือนก่อน +1

    The Google login works well, but if i sign out and re login - the app doesn´t ask me to choose an google account. It automatically logs me in with the one i was logged in before.
    Is this behaviour correct or is it bug?

    • @m_hussain_mustafa
      @m_hussain_mustafa  3 หลายเดือนก่อน

      Hi, that is the intended behavior.

  • @GodFlame326
    @GodFlame326 5 หลายเดือนก่อน +1

    Does this work without the phone emulator? Like in the chrome?

    • @m_hussain_mustafa
      @m_hussain_mustafa  5 หลายเดือนก่อน

      I think it will work but it'll require some more configuration.

  • @ummii4804
    @ummii4804 9 หลายเดือนก่อน +2

    getting this error
    Error: UnimplementedError: signInWithProvider() is not implemented

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

      Hey, is there a solution yet?

  • @CapWuzza
    @CapWuzza 8 หลายเดือนก่อน +1

    I have a problem. I will not be forwarded to the registration even though I did the same as in the video.... Did you have this problem?

    • @m_hussain_mustafa
      @m_hussain_mustafa  8 หลายเดือนก่อน

      Hi,
      I believe the registration logic is a bit different then signing in the code might have to be modified a bit.

  • @greetingsfromnow
    @greetingsfromnow 9 หลายเดือนก่อน +1

    Hello, is there a token duration after logging in with Google? If we are performing a read operation with an authenticated user, should we perform a background process like token renewal after this login process.

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

      I believe firebase does this automatically all you have to worry about is making sure the user is authenticated.

  • @preneure
    @preneure 11 หลายเดือนก่อน +2

    Awesome tutorial as always keep making these great videos.

  • @nexonmusicfeels6910
    @nexonmusicfeels6910 11 หลายเดือนก่อน +1

    Great tutorial sir ❤
    Can you please make a app for language translator for different languages?? Sir
    Please sir
    Love your content ❤

    • @m_hussain_mustafa
      @m_hussain_mustafa  11 หลายเดือนก่อน +1

      Hi, Thank you for your comment. I already have a video on this topic: th-cam.com/video/ltOGmtSuN6w/w-d-xo.html

  • @agungeka9281
    @agungeka9281 2 หลายเดือนก่อน +1

    Thank you Hussain, its really helpful. With love from IDN

  • @shahfahadafridi619
    @shahfahadafridi619 9 หลายเดือนก่อน +1

    why user.displayName is null

  • @lequoctam
    @lequoctam 3 หลายเดือนก่อน +1

    Thank you so much the 12:07 is what i need to solve when i cannot find my SHA1

  • @gouthamkrishna6922
    @gouthamkrishna6922 8 หลายเดือนก่อน

    It worked the first time, but now it just crashes everytime I click signup

  • @koadhiow
    @koadhiow 10 หลายเดือนก่อน

    It's work!, thank you, next, sign in/up with facebook please

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน

      Great 👍. It's in the works.

    • @koadhiow
      @koadhiow 10 หลายเดือนก่อน

      @@m_hussain_mustafa ops, sorry,, typo, it works! I've been following your video lessons on udemy too, and they have been incredibly helpful for me, Thank you for sharing your expertise and making the learning process enjoyable.🙂

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

    you only the people who let me succeed implement with iOS

  • @satorugojo309
    @satorugojo309 หลายเดือนก่อน +1

    thank u man, this is just awesomely helpful for real

  • @LUCIFERMORNINGSTAR-pz2zc
    @LUCIFERMORNINGSTAR-pz2zc 5 หลายเดือนก่อน

    how to access display name and birth date , display name property give me null value

    • @m_hussain_mustafa
      @m_hussain_mustafa  5 หลายเดือนก่อน

      Hi,
      I believe the display name and other properties should be available on the authenticated user object instance provided by the firebase auth plugin.

  • @kawesu8781
    @kawesu8781 10 หลายเดือนก่อน

    Can we have the log out page on another dart file? the issue with the current one is everything is 1 dart file.

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน

      Yes you can put the logout functionality anywhere you’d like. This was just for tutorial purposes.

  • @ammarbhatkar_0846
    @ammarbhatkar_0846 10 หลายเดือนก่อน

    iam trying to run keytool -printcert -jarfile app.apk command but getting error :'keytool' is not recognized as an internal or external command,
    what should i do ?

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน

      You need to ensure you have the android sdk and ndk correctly setup and installed on your system.

  • @ketokun
    @ketokun 4 หลายเดือนก่อน +1

    Many thanks! Absolutely brilliant explanation!

  • @sulemanali8542
    @sulemanali8542 10 หลายเดือนก่อน

    Awesome ,Did you make Flutter Facebook Sign in Using Firsebase ? for Android and IOS ?

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน

      Hi, I haven't made a tutorial on that yet. It still is in the works.

  • @muhammadali4653
    @muhammadali4653 2 หลายเดือนก่อน +1

    AWESOME and Thankyou!

  • @TheProGamerVibes
    @TheProGamerVibes 10 หลายเดือนก่อน

    what about i want to know if google login is work on release mode. I need to change sha1 to the one that i already upload to google play store?

    • @m_hussain_mustafa
      @m_hussain_mustafa  10 หลายเดือนก่อน

      If the sha1 changes then I believe yes you have to.

    • @TheProGamerVibes
      @TheProGamerVibes 10 หลายเดือนก่อน

      @@m_hussain_mustafa and another question. the command keytool -printcert -jarfile app-debug.apk it print Not a signed jar file

  • @uvinuthsara3710
    @uvinuthsara3710 5 หลายเดือนก่อน +1

    Thank You very much! : D

  • @RonyHassan47
    @RonyHassan47 11 หลายเดือนก่อน +1

    As always very good than others

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

      Thank you. I appreciate your support.

  • @kairatkubat8877
    @kairatkubat8877 11 หลายเดือนก่อน +1

    great tutorial ! Thank you sir

  • @EftifaJannat
    @EftifaJannat 11 หลายเดือนก่อน +1

    Woww. Best one

  • @GodFlame326
    @GodFlame326 5 หลายเดือนก่อน

    One last question. When I clcik Sign in button, it opens and closes a window and keep stuck in button loginscreen. I have updated the hashes as you explained but I dont know where to go.
    E/FirebaseAuth(21430): [GetAuthDomainTask] Error getting project config. Failed with INVALID_CERT_HASH 400
    E/flutter (21430): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [firebase_auth/invalid-cert-hash] There was an error while trying to get your package certificate hash.
    E/flutter (21430): #0 FirebaseAuthHostApi.signInWithProvider (package:firebase_auth_platform_interface/src/pigeon/messages.pigeon.dart:1190:7)
    E/flutter (21430):
    E/flutter (21430): #1 MethodChannelFirebaseAuth.signInWithProvider (package:firebase_auth_platform_interface/src/method_channel/method_channel_firebase_auth.dart:376:22)
    E/flutter (21430):
    E/flutter (21430): #2 FirebaseAuth.signInWithProvider (package:firebase_auth/src/firebase_auth.dart:648:9)
    E/flutter (21430):
    E/flutter (21430):
    Any tips on how to solve it? Thanks for the amazing work

  • @gunasheelan4130
    @gunasheelan4130 10 หลายเดือนก่อน

    thank you so much bro you just ended the war between me and my app!!!😫😫

  • @AlfaSanga
    @AlfaSanga 10 หลายเดือนก่อน +1

    Best tutorial 👍

  • @abelbeyene868
    @abelbeyene868 2 หลายเดือนก่อน +1

    real solution!!!

  • @daquere
    @daquere 8 หลายเดือนก่อน

    Excellent video, solve my problem!!! Congrats!

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

    You talk a little too much

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

      Hahaha 😆 I'll take this as a positive thing. Cheers. Thanks.

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

    capoooo

  • @zhenghaizhou6085
    @zhenghaizhou6085 8 หลายเดือนก่อน

    great video! the re-run flutterfire configure advice saved my life! 🥳

  • @amadousow8048
    @amadousow8048 10 หลายเดือนก่อน

    I like it, very well explain it's great

  • @Almita-ql1gt
    @Almita-ql1gt 8 หลายเดือนก่อน

    Ngl you saved my whole project

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

    you were erasing my homepage and default increment screen, i just want to bring it to your attention that you can actually create an empty flutter project with the -e flag

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

      Thank you for the useful tip, much appreciated.

  • @azizrajpoot999
    @azizrajpoot999 3 หลายเดือนก่อน

    Appreciated 💣

  • @zhenghaizhou6085
    @zhenghaizhou6085 8 หลายเดือนก่อน

    Thanks!

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

    worked❣

  • @deccan
    @deccan 2 หลายเดือนก่อน

    Commercial guy, Asking people to pay when clicked his source code link. You should highlight that it is a paid link

    • @m_hussain_mustafa
      @m_hussain_mustafa  2 หลายเดือนก่อน

      Hi, the source code for this video is completely FREE. All you have to do is provide your email and it's delivered in your inbox.

  • @AliMsheik-tb7uj
    @AliMsheik-tb7uj 7 หลายเดือนก่อน +1

    this video could be 4 minutes long and its clearly says google sign it not firebase setup bro nobody likes long intro just give the code and we are done

    • @m_hussain_mustafa
      @m_hussain_mustafa  7 หลายเดือนก่อน +6

      Brother if you are in a hurry does not mean everybody else is as well. I have to cater to all peoples beginners, intermediate and advanced. What works for you might not work for them. If you just need code better off googling and copy pasting.

    • @shuaibalghazali3405
      @shuaibalghazali3405 4 หลายเดือนก่อน +2

      ​@@m_hussain_mustafathank you very much for making a detailed video really appreciate it

    • @m_hussain_mustafa
      @m_hussain_mustafa  4 หลายเดือนก่อน +2

      @@shuaibalghazali3405 you’re welcome ☺️