I use different OAuth providers for my app (Google, Facebook, Twitter), and they all work perfectly on web, and Facebook and Twitter work fine on my Android app, but loginWithGoogle
isn’t cooperating.
I’m calling this function on the client:
Meteor.loginWithGoogle({ requestPermissions: ['email'] }, function (err) { console.log(err); });
and set up the configuration on the server:
ServiceConfiguration.configurations.upsert(
{ service: "google" },
{
$set: {
clientId: Meteor.settings.google.appID,
secret: Meteor.settings.google.appSecret
}
}
);
As I said, it works fine on a web browser, but in the Android app, console.log(err)
is logging "10"
.
I’m apparently not the first person facing this problem, but I haven’t been able to find any solutions. Is it possible to get the loginWithGoogle
method to work on an Android app?