Xamarin Forms : Sign in with Google

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

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

    Thank you so much; you are the first one who gave me a real example of what the redirect uri, as well as making many other things clear for me that I had been searching for for hours.

    • @CuriousDrive
      @CuriousDrive  4 ปีที่แล้ว

      I am glad that it was helpful. Thanks for watching the video.

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

    Google Sign-in description is useful, of couse... But how about getting list of files from Google Drive? ;)

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

      Not sure if you have already checked out this link or not - developers.google.com/drive/api/v3/quickstart/dotnet

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

      Join this question

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

      @@CuriousDrive the link describes how to use API Google Drive for JavaScript and for Web Application but not for .Net and Mobile application.

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

    After logging in with google, it is not possible to return to the application, when I manually close it, it is not logged in. What should I do?

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

    what is the difference between this and firebase google login auth?

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

      I hope this helps. stackshare.io/stackups/firebase-authentication-vs-oauth2

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

    I am getting Error: disallowed_useragent. It tells me to use chrome or safari because it is more secure. The thing is I can't figure out how to force my app to open chrome instead of a webview inside my app. Do other people have this problem aswell?

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

      Do you have CustomUrlSchemeInterceptorActivity?

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

    Getting error as below under OAuthNativeFlowPage.xaml.cs Line # 47 var authenticator = new OAuth2Authenticator. During debugging I can see all the values passed to above metod
    Error :
    System.UriFormatException: Invalid URI: The format of the URI could not be determined.

    • @CuriousDrive
      @CuriousDrive  4 ปีที่แล้ว

      Hi Bala, Do you have correct package included for OAuth2Authenticator? Are you passing your URL as string type instead of URI?
      Sorry I can't look at the code right now, I am traveling.

    • @BalaVanchi
      @BalaVanchi 4 ปีที่แล้ว

      @@CuriousDrive Hi, Sorry to bother you and thanks for your time. I have downloaded the code from Github using the above link and on top of that code, I have updated my Client ID in 3 places which you have highlighted. Also, updated the package name in the Google console

    • @BalaVanchi
      @BalaVanchi 4 ปีที่แล้ว

      Hi, Any luck on the above error?

  • @luisgonzalez-yr4uv
    @luisgonzalez-yr4uv 4 ปีที่แล้ว +1

    Hi Curios Drive, thk so much for the tutorial it really help.
    Im running an issue and i create the keystore following you instructions in the video that you made the APK, but when y run the command
    keytool -exportcert -keystore (My keystore location) -list -v throw me an error that says The keystore file exists, but it is empty i really cant firgure out how to fixed. if you can help me i will be very grateful.

    • @luisgonzalez-yr4uv
      @luisgonzalez-yr4uv 4 ปีที่แล้ว +1

      I solved it. the problem was that when i run the command in the cmd i wasnt given the ext .keystore in to "my keystore location".
      Example here :
      keytool -exportcert -keystore "C:\Users\myname\AppData\Local\Xamarin\KeystoreLocation\NameKeystore.keystore" -list -v

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

      Good Job Luis, and thanks for sharing information with the community.

  • @app-alchemy
    @app-alchemy ปีที่แล้ว

    Unfortunately, if you target Android 12 or above with the Xamarin.Auth package you'll get an exception: requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. There's an open issue on the package's Github page that was created November 2021. Unfortunately, the package is no longer maintained. 🥲

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

    Hi, it works but says account store is obselete. do you know how I can use xamarin secure storage instead?

    • @mapelpapel1998
      @mapelpapel1998 4 ปีที่แล้ว

      I would also like to know that

    • @trevornkuna8391
      @trevornkuna8391 4 ปีที่แล้ว

      @@mapelpapel1998 I managed to find a way around that.... By migrating to secure storage

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

    helpful.. but fyi xamarin essentials gives you great alternates to Application.Current.Properties

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      Thanks Neville, I see it's documentation at docs.microsoft.com/en-us/xamarin/essentials/preferences?tabs=android

  • @RoshanGuptaCool
    @RoshanGuptaCool 4 ปีที่แล้ว

    Thank you, it really helped me to implement , I am facing issue after successful authentication from gmail my app instance is created on the browser and I have to minimize and go to native Xamarin application there I am getting profile detail. How to remove browser instance and directly navigated to app only. I would be grateful for your suggestion. Thank you !!!

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

    Hi everyone! Anybody can say me why so many videos about google authentication but no one tutorial about what to do after authentication? What is next? How to use google drive after authentication? How to download and upload file?

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

    I am doing this on my Mac an cannot find the URL file he goes to later in the video

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

      @Curious Drive its the points where you start editing files that i cannot find

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      I am making changes in Constants.cs file which is in the core project.

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      Thanks for watching the video. Please don't forget to subscribe and share

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

    after signin the page stays on Google Home page does not return to Native App

    • @CuriousDrive
      @CuriousDrive  4 ปีที่แล้ว +4

      Do you have CustomUrlSchemeInterceptorActivity?
      I had make some changes CustomUrlSchemeInterceptorActivity to make go back to Native app.
      You can find this class here - github.com/CuriousDrive/PublicProjects/blob/master/OAuthNativeFlow/Droid/CustomUrlSchemeInterceptorActivity.cs
      I hope it works for you.

    • @eslysama
      @eslysama 4 ปีที่แล้ว

      @@CuriousDrive It works like a charm for me! Thank you so much!

  • @Sunny-tb7mj
    @Sunny-tb7mj 4 ปีที่แล้ว

    How to get the "access token" after google authentication in xmarine android?

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

    Also what packages do we need downloaded

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

      @Curious Drive what package did you install into your nuget ?

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      If you are cloning the project then you don't need to install any nuget package but if you are starting from scratch then you need Xamarin.Auth and Newtonsoft.Json

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

    how to hide status bar and navigation bar on a specific page(activity) in xamarin forms???

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

      Hi Muhammad, I haven't personally tried this solution but maybe you can try this
      stackoverflow.com/a/36659418/12014626

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

      @@CuriousDrive sir that hides only navigation bar.. i also want to hide status bar..

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

      Looks like very hard thing to implement but possible
      stackoverflow.com/a/36451267/12014626

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

      @@CuriousDrive Thank you...

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

      @@muhammadtayyab2004 You are welcome. I would really appreciate if you subscribe my TH-cam channel and share it your friends too :)

  • @techproadmin1361
    @techproadmin1361 4 ปีที่แล้ว

    For login with gmail for ios what are the steps to be follow

    • @CuriousDrive
      @CuriousDrive  4 ปีที่แล้ว

      Hello Techpro, I don't have a mac machine so I couldn't test and add that to the demo.

    • @techproadmin1361
      @techproadmin1361 4 ปีที่แล้ว

      @@CuriousDrive Ok thanks.

  • @drew9657
    @drew9657 5 ปีที่แล้ว

    keytool -exportcert -keystore "C:\Users\USERNAME\AppData\Local\Xamarin\Mono for Android\Keystore\oauthtest1\oauthtest1.keystore" -list -v
    Throws the following error:
    keytool error: java.lang.Exception: Only one command is allowed: both -exportcert and -list were specified.

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      Hey, what version of java runtime are you using?

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

      @@CuriousDrive Earlier, I was using jdk-13 but then I caught it in the video and used jdk1.8.0_221. I downloaded just that and used it. It worked perfectly. But I do not understand what is the difference.

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      @drew 96 I am glad that it worked for you. I am not really sure what the difference is but it looks like they have changed the syntax of the command where you can't export certificate and list all the fingerprints at the same time. Doesn't make sense, I should look into that.

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

    This repo was copied from github.com/xamarin/xamarin-forms-samples and this process is fully explained on docs.microsoft.com. You should mention you are not the author.

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

      You are correct. I should mention it. This is one of the very early videos that I made on my channel and I was not sure of what to mention in video description. Yes I am not the author but I did make some changes in the code that's why I created my own repo.
      I am mentioning the references the in video description now. Thanks for the feedback. :)

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

    Dude, thanks.. you save my ass.. ❤
    Subscribe now..

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

      Thanks for watching PleuralBlue. Please share with your friends too.

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

    Hi Thank you fro the Good login can you give me the Facebook all so

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      Check out this video - th-cam.com/video/Mq3us6CG9TY/w-d-xo.html

    • @CuriousDrive
      @CuriousDrive  5 ปีที่แล้ว

      I hope that was helpful. Don't forget to subscribe

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

    After logging in with google, it is not possible to return to the application, when I manually close it, it is not logged in. What should I do?