google-signin: Crashing in IOS while signing into google without giving any failure response or error back to the user (for showing custom alert to the end user)

I have searched open and closed issues for this issue.

  • I have searched open and closed issues.

This is not a bug report for DEVELOPER_ERROR

  • I have read the troubleshooting guide

Minimal reproducible example

https://github.com/saikrishna124/googlesigin/tree/main

What platform(s) does this occur on?

iOS

Summary

await GoogleSignin.signIn()
                  .then((user) => {
                   console.log("success",user)
                  })
                  .catch((err) => {
                    console.log("userInfo",err)   }

Your computer environment

macbook

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 17

Most upvoted comments

I realise my mistake in the setup.

While I do have Firebase integrated with my Expo project, I am NOT using the Firebase authentication (and I don’t want to use it). Hence, I should have used the integration without Firebase as per the documentation.

As per @Marcados comment, on top of adding iosUrlScheme in expo app.config as per the documentation, we also need to set the iosClientId in our react native code:

GoogleSignin.configure({
  iosClientId: ENV.GC_CLIENT_ID,
})