I’m building a Meteor Cordova
app which requires Google OAuth2
login. Now it’s working on the web app and the iOS app but not on Android. In details:
-
web: I created a web credentials, get
clientId
,clientSecret
, save them toServiceConfigurations
, then use theaccounts-google
package for logging users in -
iOS: I generated a REVERSE_CLIENT_ID and put it into the mobile-config.js file like this:
App.configurePlugin('cordova-plugin-googleplus', { REVERSED_CLIENT_ID: 'com.googleusercontent.apps.xxx', });
And it’s working.
-
android: I don’t know what to do now for Android. When I tried to login using the app, I made it to the account popup screen, then after entering my Google email and password, I got this error:
The operation couldn’t be completed. (com.google.HTTPStatus error 400.)
Any helps are appreciated, thanks !