This is the third article of the series about Social Media Authentication. In the previous one, I showed how to integrate Instagram authentication. In this one, we will be integrating Google login in a Xamarin Forms application.
Here the order of the series:
- Article 1: Facebook
- Article 2: Instagram
- Article 3: Google
- Article 4: Twitter
- Article 5: Microsoft
- Article 6: LinkedIn
Google authentication
To do this integration we will be using the Plugin.GoogleClient.
The result will look like this:
Let’s start:
1-Firebase portal setup
Few months ago we wrote a detailed guide of how to set up you can follow it step by step here.
2-Install the Plugin.GoogleClient
3-Add the Android/iOS platform configurations
In your Android project, add these configurations.
In your iOS project, add these configurations.
4-Add the authentication logic in your forms project
You can check the full source code here.
Happy google integration!