Flushed with my success in getting google login to work on Android, I am now struggling with IOS. Here’s what I’ve done:
- Added the google plus plugin:
meteor add cordova:cordova-plugin-googleplus@8.4.0
- Created an IOS type Oauth 2.0 client ID in my google developer console specifying:
A) The Bundle ID (as per my reverse domain path I have for my app - and set as theid
property inApp.info()
of mymobile-config.js
B) The Team ID that is my Apple developer account - Using the IOS URL scheme as provided by the above Oauth 2.0 client ID I set up this entry in my mobile-config.js:
App.configurePlugin('cordova-plugin-googleplus', {
REVERSED_CLIENT_ID: 'com.googleusercontent.apps.BigLongAlphanumericString'
});
By my reckoning that should work. But when I try it in an IOS beta release (i.e. against a production server), Google’s popup auth window entitled “accounts.google.com” tells my I have an Authorisation error giving a “401: invalid client”.
I have 2 questions:
- Does anyone have any ideas as to how I can trace/debug this so I can see what is being sent to google?
- At what point does the REVERSED_CLIENT_ID as set in my
mobile-config.js
get ingested (I know, for example, that you cannot add thecordova-plugin-googleplus
plugin unless this exists - perhaps it gets set up when you add the package?). I cannot find any evidence of it in the Xcode project, or in the .meteor folder or anywhere - making me think that it’s not getting sucked in - which would explain the google auth error - OK, 3 questions: Can anyone see what I am doing wrong or what I’m missing out?
Thanks, as ever