russmedia-digital / cordova-plugin-google-signin

Cordova Google SignIn
Apache License 2.0
11 stars 29 forks source link

Error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must specify |clientID| in |GIDConfiguration|' #16

Open skyline220 opened 1 year ago

skyline220 commented 1 year ago

Hi,

I am trying your plugin after cordova-plugin-googleplus has been deprecated. I have set up and installed the plugin as per your instructions but I get the following error when I try to run the signin method on iOS (XCode 14.3, deployment target iOS 12.0)

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'You must specify |clientID| in |GIDConfiguration|'

I had to use GoogleUtilities version 7.7 (with GoogleSignIn 6.2.4) as my Podfile wouldn't install otherwise. The app compiles and runs without issue until I click the sign in method for the plugin.

According to the GoogleSignIn for iOS docs it also says you need to add GIDClientID and GIDServerClientID to the Info.plist so I added them with the appropriate values but it still didn't help.

Link to doc: https://developers.google.com/identity/sign-in/ios/start-integrating#add_client_id

Please let me know next steps if you could to resolve this issue and thanks for putting together the plugin.

Thanks