How to Implement Google One Tap SignIn on Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2023
  • In this video we will be seeing how to integrate google one tap signin to your android application. We will walk you though step by step process on implementing it and also provide complete explanation with source code.
    Google One-Tap signin make it easy for users to sign in to your android application. It is always better to use such easy methods to make every step easy for your users. So lets learn how to do this in the right, easy way.
    Download Source Code: youtube.codeseasy.com/2023/go...
    Google One-Tap Docs: developers.google.com/identit...
    How to get SHA-1: developers.google.com/android...
    ########## For Doubts (ask it here) ################
    Discord: / discord
    Whatsapp group: whatsappgroup.codeseasy.com
    ############################################
    ########## For Business Queries ##########
    Contact us for any business queries:
    Email: mail@codeseasy.com
    Phone number: +918281536333
    WhatsApp: whatsapp.codeseasy.com
    ####################################
    Find us on Social Media:
    Website: www.codeseasy.com
    Telegram: t.me/CodesEasyOfficial
    Facebook: / codeseasy
    Instagram: / codeseasy
    Twitter: / codeseasyblog

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

  • @dkn4.hackers
    @dkn4.hackers 3 หลายเดือนก่อน +3

    Even reading the documentation I was making several small errors. Thanks for the detailed video!

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

      Glad it helped!

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

    Bro, your code also working on Kotlin. Really thanks, you saved my life

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

    it was very helpful ;) great tutorial thanks brother 👍👍

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

      Glad it helped

  • @MegaArti2000
    @MegaArti2000 8 หลายเดือนก่อน +2

    8:00 for some reason it takes a while until you can import classes; I guess you need to try and run the app before you try to import theses classes; maybe my PC is just too slow, I dont know

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

      You have to synchronise the project after adding dependency. Also if your system is slow the recommendations might take too much time

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

    Amazing! Thank U!

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

      Welcome!

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

    👍👍😍😍

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

      Happy that you liked the video

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

    Thank you so much! Unfortunately, Google One Tap SignIn is soon to be depreciated. However I thought implementing the new credential manager was too difficult, so I opted for this one instead. At least until there are more tutorials for credential manager.

    • @CodesEasy
      @CodesEasy  7 หลายเดือนก่อน +2

      We will soon publish one. 👍

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

      @@CodesEasy Yes sir, please upload a video on credential manager with java because they have already removed the doc for create account with one tap but they haven't uploaded doc to use credential manager with java, I tried to implement it by converting kotlin codes to java with the help of chatGPT but it is causing many errors. Don't know what to do now😭. I really need a video on that. PLEASE🙏

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

    Hi sir. I have wordpress website.i use nextend plugin for social login. I converted to app by using android studio. Everything works fine except social login. Can you create a video on this. It will be helpful. How to create social login and link to wordpress or is there any plugin. Thanks pls reply.

  • @user-li7kp2tw8s
    @user-li7kp2tw8s ปีที่แล้ว +1

    Thanks for your video. This save my day. Can you tell me why you use client Id from Web client instead of Android Client?

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

      You would use this client ID when calling Google APIs from your server
      Read this
      developers.google.com/identity/one-tap/android/get-started#api-console

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

    Thank you.

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

      Glad you liked it

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

    great tutorial
    Thanks!

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

      Glad it was helpful!

  • @user-pp6fx1dc6b
    @user-pp6fx1dc6b ปีที่แล้ว +1

    Thank youuuuu very good

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

      Happy that the video helped you

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

    How can we get rid of the second dialog that comes after the email selection
    Signin In With Google
    By Continuing , google will share your name , email address and profile picture with
    Accept
    how do we make sure this dialog doesnt come as we are not using user email or name or picture
    so how do we get rid of this dialog ?

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

    Hi Thanks for the wonderful video. Can you please make a video on Firebase authentication using Google one tap sign in

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

    I'm developing an app with a WebView embedded in it. After the user is signed in to their Google account within my app, is it possible to use their credentials to sign in automatically to their account in the WebView?

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

      You won't be having a password. If you are getting a password also from the user you can do it.

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

    How to Implement this using jetpack compose please let me know if you have any reference without using view models as simple as possible

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

      This is the better and recommended way by google. Check Google docs.

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

    13:24 where did this method come from?? My Android Studio says I have to write my own handler, but I have no idea how.

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

      Update your android studio and sdk's, you simply have to follow the video as it is

  • @AyushKumar-yd7my
    @AyushKumar-yd7my ปีที่แล้ว +2

    After signing it's not saving user info in firebase auth
    And also how to delete user Google signin data and after signin where user data stores

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

      Check this docs developers.google.com/identity/one-tap/android/overview

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

    Hi! I did all code. The app made in Android Studio works ok. But after publish that version can not sign up. After click the button nothing happens. The options acoount to select do not appers in screen. It s not possivible debug it. Did you ( or someone here) know what is going on?

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

      It will be done to change in signature, sha1 etc. check what's causing the issue

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

      Check the exception and also check the google dashboard etc

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

    how to check at the opening of the app that the user is already signeed in or not!!

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

      Check this developers.google.com/identity/sign-in/android/sign-in#check_for_an_existing_signed-in_user

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

    Hi I´m wondering if there´s a way to ask the users to submit their password when they sign in. I´m trying to avoid one tap for security reasons.

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

      There are other videos in the channel which does it like that way. Check login and registration using firebase video in the channel

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

    after Login How to get user profile picture to ImageView and Name into TextView ?

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

      Check the docs

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

    Great detailed video but why does it not work on the android emulator

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

      Lack of a few google apps

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

      @@CodesEasy Would using this store the google sign in credentials to a firebase realtime database

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

    why you chose web when you generated credentials shouldn't we choose android as we working on android

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

      that is for the server api credentials that we need to use on the android part

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

    Unfortunately does not work for me. The request returns with no success or failure, so nothing happens

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

      Check the code and correct it

    • @andrew-xu3vw
      @andrew-xu3vw 8 หลายเดือนก่อน

      @@CodesEasy issue was - me trying to use Android token, but need to use the web one

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

    What if I don't have a domain

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

      You can use local host for testing purpose

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

      have you resolved the issue? i also don't have a domain

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

    kotlin time now..no one behind

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

      Sure, we will start making kotlin videos too.

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

    After publishing the app One tap sign in is not working.

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

      Most probably signature change

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

      Which signature?

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

      I have the same problem. Did you already solve that?

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

    always telling half information,
    unsubscribe this channel

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

      Please let us know what you want to know or what we missed in the video. This will definitely help us improve and also help you right now 😀

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

    startIntentSenderForResult(
    result.getPendingIntent().getIntentSender(),
    REQ_ONE_TAP,
    null,
    0,
    0,
    0);
    gives me this error:
    error: method startIntentSenderForResult in class Fragment cannot be applied to given types;
    startIntentSenderForResult(
    ^
    required: IntentSender,int,Intent,int,int,int,Bundle
    found: IntentSender,int,,int,int,int
    reason: actual and formal argument lists differ in length
    it means that the third argument cannot be null. How to fix it?

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

      Don't use start intent for result. Watch the video complete. It will be changed to new method

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

    Even reading the documentation I was making several small errors. Thanks for the detailed video!

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

      Glad it helped!