I'm setting up a Meteor app and using Google sign-in for the first time. This works fine in the web-app version of the app. However, when building the app for iOS, this generates a problem.
I do this:
meteor run ios-device --mobile-server https://myapp.meteorapp.com
Then get this:
Failed to install 'cordova-plugin-googleplus':Error: Variable(s) missing: REVERSED_CLIENT_ID
And
While adding plugin https://github.com/meteor/cordova-plugin-googleplus.git#blabla to Cordova project: Error: Variable(s) missing: REVERSED_CLIENT_ID
How to resolve this?
You need to do 2 things.
Go to the same place you created your webapp credential. Something like this: https://console.developers.google.com/apis/credentials?project=YOURPROJECT
Click the Create Credential button... pick OAUTH... and then pick IOS.
Enter your info... and then take that number and paste it into you mobile-config.js file like this:
App.configurePlugin('cordova-plugin-googleplus', {
REVERSED_CLIENT_ID: 'com.googleusercontent.apps.LONGNUMBER'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With