Just released the Google Client Plugin, it makes the process of authenticating a user across Xamarin Forms, Xamarin.Android and Xamarin.iOS with Google Sign In easier.
The setup process for the plugin is pretty simple and it’s well documented on the Google Client Plugin GitHub page. you can complete the Setup process following these steps:
- Install the nugget package into your PCL project and Client projects.
You just have to use GoogleClient.Current
Here is an example of how to launch the login to the Google Client:
This method returns a Google User which contains the basic profile of the user that was authenticated, with the following structure:
Here is an example of how to log out of the Google Client:
- ActiveToken (Signed In user token)
All async methods also trigger events:
Official Google Sign In SDK Documentation:
Full documentation of the project:
Xamarin Forms sample project:
Made with ❤ by Pujols