In today's post we will learn about Cordova plugin to login with Google Sign-In on iOS. This plugin allow users with Google Sign-In on iOS application and you will get the user's profile information such as email, user id, profile name, profile picture URL. By using this plugin you can only access the Google Sign-In API.
First of all, to access the Google Sign-In API we need to do some setup. For iOS application we need your application's package name. You can get the package name from your config.xml file.
In the above example com.demo is the package name.
Setup for iOS application: We need to generate a configuration file. To generate configuration file Click Here. You have to create or choose existing app and need to add their respective package name then click on the Choose and Configure Services. Now click on the Generate Configuration Files then download the GoogleService-Info.plist file. This file contains the Reversed Client Id. Which you'll need during plugin installation.