I have my Meteor app deployed and it’s accessible through a SSL secured domain (say domain.com), yet when I run it like this:
meteor run android-device --mobile-server=domain.com
the call fails and there is no error being outputted. I can see the popup window and select my preferred user account. After selection it shows the sweetAlert.
Here is the straightforward code:
Meteor.loginWithGoogle({}, function(error) {
if (error) {
sweetAlert("Google Auth Failed", error.reason, "error");
} else {
finishLogin();
}
});
Edit: I have to clarify that it works locally without --mobile-server=domain.com
Edit2: I also configured the cordova plugin
App.configurePlugin("cordova-plugin-googleplus", {
REVERSED_CLIENT_ID: ">snip<"
});