Google SignIn with Flutter | Android, iOS and Web tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • Learn to add Google Auth inside your Android, iOS and Web application.
    In this tutorial, I have explained step by step how to integrate google sign in inside flutter application for all the three major platforms.
    Extension for code templates:
    marketplace.visualstudio.com/...
    Firebase Console:
    console.firebase.google.com
    Google Cloud Console:
    console.cloud.google.com/apis...
    Run app on fixed port:
    flutter run -d chrome --web-hostname localhost --web-port 5000
    0:00 - Introduction
    0:36 - Project creation
    2:05 - UI Design - login
    2:40 - iOS integration
    4:35 - google_sign_in package
    6:44 - UI Design - profile
    14:00 - Android integration
    15:48 - Web integration
    If you like my work
    Buy me coffee on : buymeacoffee.com/afzalali15
    Join this channel to get access to perks:
    th-cam.com/users/CodeXDevjoin
    Gears ========
    Camera 📸 || Canon 250D : amzn.to/34isdKr
    Mic 🎤 || Maono AU-04 : amzn.to/341g9wS
    #CodeX
    Connect with me on social media:
    FB: / codexdevs
    Twitter: / afzalali15
    LinkedIn: / afzalali15
    Discord: / discord

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

  • @akashchekka2557
    @akashchekka2557 2 ปีที่แล้ว +9

    Best tutorial. You covered everything that is minimal required without messing things with designs and all. Gonna recommend this to my friends. Thanks you!!!

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

      Wow, I am glad it helped.

  • @BernardinD
    @BernardinD 2 ปีที่แล้ว

    Thank you sooooooo much!! First CLEAR explanation for Android integration I've seen. Thanks again.

  • @makemypetgamedevprocess6475
    @makemypetgamedevprocess6475 2 ปีที่แล้ว

    Only video that went straight to the point, thanks buddy!!

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

    Great tutorial! I had been unable to Sign In to Google from IOS until I found this tutorial. Most of what I found was for Android and either glossed over IOS or was incorrect, but your tutorial worked! Thank you!

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Glad it helped! Thank you for the feedback 😍

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

    You got the timing right for me as i was going to find tutorial on this

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

  • @DevRajat-gk4og
    @DevRajat-gk4og 2 ปีที่แล้ว

    Wow thank you so much sir, this video deserves a like, very well explaination

  • @faizandarwesh7867
    @faizandarwesh7867 2 ปีที่แล้ว

    Thanks alot sir ! . Great video and simple and clear explanation as always

  • @rey-karl-studio
    @rey-karl-studio 2 ปีที่แล้ว

    Nice video. Very comprehensive and easy to understand tutorial on google sign-in. Thank you very much.

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Glad it was helpful!

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

    nice job you have define things very clearly .

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

    Video Quality is awesome🙌

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

  • @vijaysonik
    @vijaysonik 3 ปีที่แล้ว

    Absolutely stunning and very detailed

    • @CodeXdev
      @CodeXdev  3 ปีที่แล้ว

      Thank you! Cheers!

  • @flutterforever3311
    @flutterforever3311 3 ปีที่แล้ว

    Thanks buddy, this is very helpful to me

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

    Nice job man😊 Thank you!

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

      Thanks for liking 👋

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

    You are the best!

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

    Perfect timing

  • @kamrankhan-is3qi
    @kamrankhan-is3qi 2 ปีที่แล้ว

    Hi, You make it so simple .Thanks for providing us a Straight Line solution .I think in flutter web there are not more resources .So please make some tutorial on it .Love from Pakistan to whole CodeX Community .

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

    best video for the purpose.

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

    god bless you bro you are making nice job keep it up

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

      Thank you brother 😎

  • @siddheshsonawane3849
    @siddheshsonawane3849 2 ปีที่แล้ว

    Great video !!!!

  • @puneetpal1466
    @puneetpal1466 3 ปีที่แล้ว

    Nice…well explained..🤟🤟

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

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

    Thank you!

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

      Welcome!

  • @amasparera5516
    @amasparera5516 2 ปีที่แล้ว

    Yes , easy and simply logic

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Thank you for the feedback 👍🏼👍🏼

  • @blkumawat8962
    @blkumawat8962 3 ปีที่แล้ว

    So nice so good 👍

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

    Good job

  • @emmanuelfongang4913
    @emmanuelfongang4913 2 ปีที่แล้ว

    Thanks !

  • @muhammedsiyan8323
    @muhammedsiyan8323 2 ปีที่แล้ว

    thanks bro!

  • @gautampahwa1894
    @gautampahwa1894 2 ปีที่แล้ว

    lots of thanks to you

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Most welcome

  • @yogabayuangganapratama6558
    @yogabayuangganapratama6558 2 ปีที่แล้ว

    thanks i'll try it

  • @MuhanndAlnjjar
    @MuhanndAlnjjar 20 วันที่ผ่านมา

    thank you bor

  • @poisonels8023
    @poisonels8023 2 ปีที่แล้ว

    Please we need more videos of you

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

    Thank you, just one problem, whenever we cancel the signing prompt without selecting any email/profile, the app crashes or shows an exception. What should I do to handle that exception?

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

    Can you please make a tutorial on GetX new Navigator 2.0 in depth?

  • @enafor99
    @enafor99 3 ปีที่แล้ว

    thanks you so much

    • @CodeXdev
      @CodeXdev  3 ปีที่แล้ว

      Happy to help

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

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

    I am trying to make the web version of my application available in flutter. In the mobile version, both on android and ios, login with google credentials works perfectly. In the web flutter I get the idToken correctly but the accessToken is null.

  • @simplycooking_5116
    @simplycooking_5116 2 ปีที่แล้ว

    Nice👌

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Thanks 😊

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

    Please make a tutorial on how to store the credentials to database and also sign in silently. It's very important

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Binary trading options is one of the most simplest and easiest ways in making extra cash on the side with no beginners experience needed for this
      our minimum investment capital $500 which to gives you $6700 after 7days of your trading services with my company

  • @infernoinfotech677
    @infernoinfotech677 2 ปีที่แล้ว

    Greate

  • @JerosGalaxy
    @JerosGalaxy 2 ปีที่แล้ว

    it's really understandable. how to implement auto login in this project..?.

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

    Great Video Mate, I am running in some problems. How can we stay signed in in the app? It always loggs out when I close it... Have a great day!

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

    Pls upload more video on firebase

  • @tusharpatel3290
    @tusharpatel3290 2 ปีที่แล้ว

    hey i have 1 question related to this package, i successfully login and log out but when i try to login again with different account plugin let me login with same gmail account.

  • @M37Shadow
    @M37Shadow 2 ปีที่แล้ว

    ♥♥♥

  • @3kdevelopers185
    @3kdevelopers185 2 ปีที่แล้ว

    Sir, Please make a Video on How to localize (pdf text change to user selected language text) Pdf document in flutter???
    ❤️ From Pakistan 😇

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

    Great Waiting for facebook like this in future @Codx

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

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

    Thanks a lot man, for web integration I've faced an issue "access to localhost was denied ". It was due to the Airplay running on my mac. I turned it off to run on local port.

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

      Great, are you working on web apps with Flutter?

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

      @@CodeXdev Yes! I am

  • @roktimkamalsenapoty5793
    @roktimkamalsenapoty5793 3 ปีที่แล้ว

    Plz make video for otp and email login

  • @DholaSain
    @DholaSain 2 ปีที่แล้ว

    please make a video on Shopify GraphQL API with Flutter. with models and etc

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

    Hello sir, I'm facing google signin issue in release mode. I already added sha1 and sha256 as well. But still facing issue in release mode with flutter apk

  • @joker.amateur
    @joker.amateur ปีที่แล้ว

    Hello, please the authentication by google is free on firebase, whatever the number of users ?

  • @abc867
    @abc867 2 ปีที่แล้ว

    Hello Sir, I have a issue in flutter than when navigating from one page to another i get an error message telling that Null check operator used on a null value. How to solve it?

  • @husen5384
    @husen5384 2 ปีที่แล้ว

    make
    Full Tutorial about. flutter Lifecycle

  • @RajA-me9cl
    @RajA-me9cl 2 ปีที่แล้ว

    What about persistent? It logs out on restart.

  • @haripriyaravichandran1061
    @haripriyaravichandran1061 2 ปีที่แล้ว

    is there video flutter social login without firebase

  • @AhmedHassan-jo1il
    @AhmedHassan-jo1il 3 ปีที่แล้ว +1

    what about Facebook auth, need a tutorial on that as well please with getx

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

      Facebook, Twitter and Apple login are planned for upcoming videos

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

    Google Sign in working correctly but the logedin user is not reflecting in firebase authentication users data!!
    how to fix this up??

  • @azrishaharin782
    @azrishaharin782 2 ปีที่แล้ว

    please create discord for us to have a coffee chat there! Love your work btw .. keep doing it

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      We have discord, u can find link in description.. but unfortunately voice chat doesn’t work here in UAE

  • @Juliapak
    @Juliapak 2 ปีที่แล้ว

    Can you do this with facebook? I want to offer both facebook and google login

  • @flutterforever3311
    @flutterforever3311 3 ปีที่แล้ว

    Give some ideas about Reward integration in flutter, how to do? If any reference pls share

    • @CodeXdev
      @CodeXdev  3 ปีที่แล้ว

      Which Reward you are mentioning above?

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

    My gradlew signingReport command isn't working. What to do?

  • @sammiecarswell2723
    @sammiecarswell2723 2 ปีที่แล้ว

    it failed for me, what is the SHA fingerprint and why isn't it noted in the video

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

    it is not properly redirecting, basically my Obx function is not redirecting to profile page after i choose my google accountt

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

    WHere can I find the code for this tutorial?

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

    does google charge for sign in with google ?

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

      No it’s a free service

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

      @@CodeXdev I am going to launch an app using servers of DigitalOcean
      If google sing in is free , will Goole take charges, for api usage

  • @ikramullah6492
    @ikramullah6492 2 ปีที่แล้ว

    Assalam alaikum. Busy these days? no new video released this week. afzal brother please make a whole video on social signIn(google ,faceboob,appleID) using aws amplify with GetX. pleaseeee..... hope all is going well on your side. :) n one request too. please do upload git code in every video if thats possible

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Waalaikum assalam, yes was busy with some personal thing.. everything is good thanks for asking. Sure will come up with other sign in tutorials soon 🔜

  • @Baldchurail
    @Baldchurail 2 ปีที่แล้ว

    @5:06 I am facing this error.
    Debugging is not working.

  • @talhanaseer8583
    @talhanaseer8583 2 ปีที่แล้ว

    what about if we have two login methods, i-e google sign in and facebook sign in.
    what we will do in that situation.

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

      Both implementation is different, but the point is getting users email to register in your own app

    • @talhanaseer8583
      @talhanaseer8583 2 ปีที่แล้ว

      @@CodeXdev First of all thanks for replying....I tried implementing Facebook login the same way as u did Google login but it doesn't work.... documentation shows it is different from google login....

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

      @@CodeXdev very little content related to Facebook is available l....kinldy help me implementing this....

  • @wizardingstudios
    @wizardingstudios 2 ปีที่แล้ว

    Android here. If you press Login with Google but does not select an account and hit back on the phone the app crash with a black screen

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

    If you give the source code it would be better...........................

  • @csbdnazmul
    @csbdnazmul 2 ปีที่แล้ว

    Nice video but I could not understand the necessity of firebase integration

    • @michaelcosby9709
      @michaelcosby9709 2 ปีที่แล้ว

      Hi there Am an online entrepreneur by profession I trade crypto, forex as well as bitcoin and you?

  • @stupid-failshaha
    @stupid-failshaha ปีที่แล้ว +1

    10:58

  • @borniteofficial4925
    @borniteofficial4925 2 ปีที่แล้ว

    bro please help me,
    firestore flutter read and write not working in release apk
    please help

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

      Hello, have you checked on Firebase console for read and write permission

    • @borniteofficial4925
      @borniteofficial4925 2 ปีที่แล้ว

      @@CodeXdev yeah read write is true
      rules_version = '2';
      service cloud.firestore {
      match /databases/{database}/documents {
      match /{document=**} {
      allow read, write: if true;
      }
      }
      }

    • @borniteofficial4925
      @borniteofficial4925 2 ปีที่แล้ว

      @@CodeXdev i am stuck for last one week please help me

    • @visheshkaran7083
      @visheshkaran7083 2 ปีที่แล้ว

      @@borniteofficial4925 bro just remove ( : if true )and end it with (write;)
      it will work :)

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

    Consegue fazer em python?

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

      Not a Python expert 🫣

  • @captainjacksparrow7360
    @captainjacksparrow7360 2 ปีที่แล้ว

    hello Sir

  • @WebWiz-gh4kp
    @WebWiz-gh4kp 23 วันที่ผ่านมา

    Google cloud is paid service?

    • @CodeXdev
      @CodeXdev  22 วันที่ผ่านมา

      Yes, but it has starter plan and blaze plan where you pay as per uses.

  • @PanneerSelvam-eb8re
    @PanneerSelvam-eb8re 2 ปีที่แล้ว

    Get the Gender and DOB??????

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      You can get any public data available in the response object.

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

    Sir Please give me the source code

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Tbh, you dont need source code for this.. its all configuration, its going to be different for your account.
      The only thing you can use is Image and a button I placed.. so better you can follow tutorial and create ur own!

  • @Abhishekchandel12
    @Abhishekchandel12 2 ปีที่แล้ว

    KABHI HINDI ME BHI BNA DA VIDEO BHAI
    PLEASE PLEASE IN HINDI

  • @harshdeepsingh9637
    @harshdeepsingh9637 2 ปีที่แล้ว

    How to sign in to TH-cam account ? as the youtube scope doesn't work with google_sign_in package? @author

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      If google_sign_in doesn't support youtube scope, you may want to call "accounts.google.com/o/oauth2/v2/auth" with proper scope and client id and other details
      Alternatively, you can use some third party libraries like *oauth2_client*

    • @harshdeepsingh9637
      @harshdeepsingh9637 2 ปีที่แล้ว

      @@CodeXdev But the thing is, unless I get brand account, I cant actually work with the account which will be authenticated by google_sign_in plugin.

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      How about something like this, _googleAuth.requestScopes(['www.googleapis.com/auth/youtube']);

    • @CodeXdev
      @CodeXdev  2 ปีที่แล้ว

      Didn't tested, but found that you can request scopes with GoogleSignIn instance..

    • @harshdeepsingh9637
      @harshdeepsingh9637 2 ปีที่แล้ว

      @@CodeXdev actually we can request scope but the thing is it is not working out as it is not showing brand account. This case is only happening in android part of it.

  • @captainjacksparrow7360
    @captainjacksparrow7360 2 ปีที่แล้ว

    it give this error [VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(missing-config, GoogleService-Info.plist file not found, null, null)
    #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
    #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
    #2 GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:242:5)
    #3 GoogleSignIn.signIn.isCanceled (package:google_sign_in/google_sign_in.dart)