Google Sign in Flutter Firebase | Google Authentication using Firebase

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

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

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

    Thank for good content , i am starting flutter and i not have too much knowledge about flutter backend but your teaching method is really good and how to create function and make too much easy to understand the concept and really this is only one channel that provide good content and again thank you for playlist , i learn my things from your playlist..😊😊

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

      You are most welcome 🤗. And All the best 👍😁

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

    I saw Geolocation in the profile screen. I wonder if you will cover this in this tutorial series?

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

      Sure, Thank you for your suggestion. I will create a video on it

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

    Why did the user name and email data fetch and display in the profile screen? Please answer my question.

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

    hello brother, my best experience with flutter has been with your tutorials, but i haven't been able to solve this error "UserModel.fromSnapShot", in the user model how can it be fixed?

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

    The following _TypeError was thrown building TSocialButtons(dirty):
    type 'Null' is not a subtype of type 'String' how to i fixxed it is error

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

      Try debugging the code to identify where the null value is coming from. Once you locate the source of the null value, you can fix the error accordingly.

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

      @@CodingwithT The reason for the error is this code( email.text = localStorage.read('REMEMBER_ME_EMAIL');
      password.text = localStorage.read('MEMBER_ME_PASSWORD');) how can I fix this

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

      Did u find the solution

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

      In my case, I read localStorage and the value is null. So I remove this line inside onInit() login_controller.dart:
      email.text = localStorage.read('REMEMBER_ME_EMAIL');
      password.text = localStorage.read('REMEMBER_ME_PASSWORD');
      Or you can add try & catch

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

    Sir I have a question when I click on Google button then it show the login emails in my device but when I choose any email then instead of navigate to NavigationMenuScreen its navigating to LoginScreen.............. and after this when I close the app and open it again then first screen NavigationMenuScreen appears........................need help sir

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

      get the credentials of account which you have selected and then send user credentials to screen redirect method. It will then check is user verified then it automatically logged you in and redirect to home screen.
      if (user.emailVerified) {
      // Initialize User Specific Storage
      await TLocalStorage.init(user.uid);
      Get.offAll(() => const HomeMenu());
      }

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

    Hello Sir, When I click on Google Icon Button doesn't do anything it wants me to set "android:enableonbackinvokedcallback =true" in application manifest but when I add it also doesn't work help me if there is another way

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

    Can you please intergrate the same project with a laravel backend, so we can now how to do both firebase and laravel

    • @CodingwithT
      @CodingwithT  27 วันที่ผ่านมา

      This channel is focused only on Flutter videos, so Laravel integration won't be covered here.

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

    What if I have an isAdmin parameter in the UserModel class how do I save user record?

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

      Please watch the current on going Flutter Admin Panel Course to handle roles

  • @sarahismail-ob4is
    @sarahismail-ob4is 4 หลายเดือนก่อน

    hello,i have a question. i sign up using yahoo account. so in this tuto, i tried to login using gmail account (which doesnt exist in firestore). by right, i am not able to login cause the account doesnt exist for this app, but i could login, and the weird part is, i am logged in as the yahoo profile. do you have any idea on why does this happen ? thank you !!

    • @CodingwithT
      @CodingwithT  3 วันที่ผ่านมา

      This happens because Firebase uses the UID tied to the email. To fix, check the user's email/UID before logging in, or clear cached credentials.

  • @Hamza-yq7sj
    @Hamza-yq7sj ปีที่แล้ว +1

    Sir animations and expectations file upload kar di ap ne starter kit ma ?

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

    "The argument type 'Future' can't be assigned to the parameter type 'UserCredential?' " What should I do? Thank you for your tutorials.

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

      Have you added async and await?

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

      ​​@@CodingwithT I fix it, thank you very much.

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

    it didn't work for me it stop loading and show a snack bar an unexpected error any help?

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

      same here

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

    i think i have a problem, whenever i press the sign in with google button on iPhone the app just crashes, it works perfectly fine on android .

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

      There are few modifications required for iOS that I'll share in a comment.

  • @footballgrinta-8714
    @footballgrinta-8714 10 หลายเดือนก่อน

    despite i made the sha to google sign in when i click on it it shows a popup and i choose an account then it stop loading and throw "sign in failed please try again" please help

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

      Did you enable Google authentication in firebase?

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

      @@CodingwithT yes it's enabled thé problem when i tapped thé command in terminal it shows error keystore format invalid so i tried to generate a keystore file in android/app and i got the keys then i paste its in firebase and same thing please help

  • @RSharma-xn9yf
    @RSharma-xn9yf 3 หลายเดือนก่อน

    When We sign in using GOOGLE with already registered email ,it override the previous data .

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

      Hi! Please add a check to see if the email is already registered before signing in with Google. This will prevent overriding the previous data.

  • @mohammedabduraboal-haig9179
    @mohammedabduraboal-haig9179 5 หลายเดือนก่อน

    Hello sir, After I click on Google button and chose an account I get error snocker which is " sign_in_faild, please try again" that show in TPlatformException, how I can solve it?

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

      Ensure that your Firebase project is properly configured for Google sign-in. Make sure the SHA-1 and SHA-256 keys are added to your Firebase project.

    • @mohammedabduraboal-haig9179
      @mohammedabduraboal-haig9179 5 หลายเดือนก่อน

      Yes I am sure ​@@CodingwithT

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

      Have you solved this error ? Can you please share it ?

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

      @@mohammedabduraboal-haig9179 same problem, let me know if you solved it please

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

    Whenever I click on the google sign in logo, the app keeps shutting down. What to be done?

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

      This happens mostly in iOS cases.
      If this is your case then you are missing code in info.plist file
      Edit this info.plist which is in the iOS folder of your flutter project.
      Add this:
      -- Put me in the [my_project]/ios/Runner/Info.plist file -->
      CFBundleURLTypes

      CFBundleTypeRole
      Editor
      CFBundleURLSchemes
      com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn

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

      Also make sure that you don't have 2 CFBundleURLTypes in your info.plist

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

      @@CodingwithT It is still crashing.

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

      Do the fresh restart

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

      @@CodingwithT Done sir, and rechecked the code thrice still same issue

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

    You didn't show How do I check if it's a new user or not

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

      Thank you for pointing that out. You can check if a user is new or not in the Authentication repository, specifically in the screen Redirect function. There, the necessary logic for determining if the user is new or returning is implemented. If you have any further questions or need clarification, feel free to ask!

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

    sir please tell us how to do logout function

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

      To implement a logout function, you can use Firebase authentication methods like signOut() to log the user out. Additionally, you can call Get.offAll() to navigate back to the login screen or any other desired destination.

  • @footballgrinta-8714
    @footballgrinta-8714 10 หลายเดือนก่อน

    i didn't get the fingerprint for sha it always show me invalid keystore format what's the solution please ?
    Big love my brother

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

      How you create the fingerprints? Do each step again hopefully your error will be resolved. If not, you can contact me on my whatsapp

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

    its very difficult.. how we will learn it 😩😩 feeling de-motivated

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

      Which part dear? Let me know if you need any help.

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

    Thank a lot.

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

      Welcome 😊

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

    Can you plz at least upload exception file 🙏

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

      It's uploaded in the free starter kit

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

    ❤❤❤❤

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

    when clicking on the google button. it opens the google pop up. and when i select my email id . it throws error.

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

      Did you give SHA1 and SHA256 to your firebase project?