How to get Google login for Meteor on iOS?
I am creating a Meteor app and this is my first time using google login. This works great in the web app version of the app. However, when building an iOS app, this poses a problem.
I'm doing it:
meteor run ios-device - mobile server https://myapp.meteorapp.com
Then we get the following:
Failed to install "cordova-plugin-googleplus": Error: Missing variables: REVERSED_CLIENT_ID
and
When adding plugin https://github.com/meteor/cordova-plugin-googleplus.git#blabla to Cordova project: Error: Missing variables: REVERSED_CLIENT_ID
How do I resolve this?
source to share
You need to do 2 things.
- create credentials
- add it to your mobile-config.js
Navigate to the location where you created your Webapp credentials. Something like this: https://console.developers.google.com/apis/credentials?project=YOURPROJECT
Click the Create Account ... button select OAUTH ... and then select IOS.
Enter your information ... and then take that number and paste the mobile-config.js file into it like this:
App.configurePlugin('cordova-plugin-googleplus', {
REVERSED_CLIENT_ID: 'com.googleusercontent.apps.LONGNUMBER'
});
source to share