Like Google Sign-In for Android, you will need a configuration file.

Go to the below link and create a configuration file be giving your ios-bundle identifier.

[https://developers.google.com/identity/sign-in/ios/start]

Here I will be explain with the help of CocoaPods for integrating the Google SignIn SDK with the app.

So first you need to install CocoaPods.

For that Open a Terminal…

and execute command.

sudo gem install cocoapods

Now it will ask for Password and Enter your Mac Password.

Once the installation is complete…Navigate to your project directory in the Terminal itself.

Then execute command…

touch Podfile 

This will create a PodFile in your project directory.

Now Open the PodFile

open -e Podfile

Now Enter these in your PodFile and click save…

xcodeproj 'PATH TO YOUR PROJECT'
pod 'Google/SignIn'

Now come back to terminal and execute

pod install

CocoaPods installation set up for Google SignIn is now complete…Now we will go and integrate the SDK in the app..

You can find a Good Documentation here from Google Itself…

[https://developers.google.com/identity/sign-in/ios/start-integrating]

If things didn’t work out, you can download the Complete source code from below link.
Source Code

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

 

 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.