Lecture Material: Google Sign-in with Firebase in iOS

Previous article about anonymous login with Firebase authentication.

I’m going to use the same code and project structure with the previous article.

To use Google sign in feature, firstly you need to install additional pod library and change preference in the Firebase console.

import the ‘GoogleSignIn’ package after install pod.

Paste REVERSED_CLIENT_ID value into the URL Schemes from the GoogleService-Info file.

Put this code block into the AppDelegate

If you faced with this error, you need to update your GoogleSignIn pod library

Use ‘pod outdated’ command to check the availability for upgrading libraries.

Use ‘pod update’ command to make libraries being recent versions.

The error is removed.

(The code above is not working perfectly, check the full implementation with the below)

Finally, you can sign in with your Google account.

--

--

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧