Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

GooglePlayServices.Auth for Android in Xamarin.Forms

$
0
0

Hi.
I'm really struggling with this using the new Xamarin plugins from Nuget for Authentication via GooglePlayServices.
Found a great example on YouTube by JoeRock (image) where he works through how to do this in Xamarin, but his first few steps use the old Plus API and old builder, and for me (using the new builder and GoogleSignInAPI), the Connection never results in anything usable. Indeed I question whether a signin has actually occurred just because connect() has "success"...
I find that OnConnected() is called, but contains nothing of use. How do I get the signed in account from the connectionResult if I can't use the PlusClass? I tried a SilentSignIn inside OnConnected(), but again, it returns an unsuccessful result.
OnConnectionFailed() never gets called, so I never have a Resolution object to use to launch a sign in intent.

And if I try it the other way, by create an intent manually and try to use it to sign in, then it always results in Canceled.

What is the relationship between Connect() and creating an intent for sign-in?

This was so easy to make work on Xamarin for iOS.
I am starting to question whether this is possible using the new APIs.
Surely someone else out there must've tried this? Or are you all still using the deprecated APIs?

Has anyone else tried and failed?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>