Does anyone know the right set of steps to take to get my login with google button (that works in my web app) to work in an android build? Here’s what I’ve done/worked out:
I had inferred from the meteor docs that Google login should “just work” in Android (and in IOS too, for that matter). Indeed the build automatically includes
cordova-plugin-googleplus cordova plugin which further cements this perception. Not only that but when I run the android build on a locally connected android device in debug mode, the build prints out a special warning to say it won’t work in a local environment. Which suggests that it will work when run against a production server. Also, I cannot find any Meteor documentation that directs what steps to take to make it work.
When I click on the
Login with Google button in the Android app, it does in fact popup the Google window asking you to login. That’s fine. It’s just that when the window pops down again I get an “unknown error”. It’s difficult even in the web app to debug/trace errors in the oauth dance that is deep in the Accounts package infrastructure, so I have not, as yet, attempted to identify the error, preferring instead to at least set things up so that I can expect it to work …
I am now assuming more steps do need to be taken and I am struggling to find what these are. I have, however, done the following in the google firebase console, but with no success:
- I have a project with Google login enabled and set an entry in my
mobile-config.jsto configure the
cordova-plugin-googleplusplugin with the
Web Client Idas identified in this google sign in provider section that I have enabled
- I have created an Android app whose package name is the same as the id specified in the App.info() properties set in my mobile-config.js
- I have lodged the SHA-1 certificate fingerprint from the certificate with which I signed the android app
I’ve just summarised these actions so that, for anyone in the know, they will understand them and be able to comment on whether they are relevant and/or incomplete.
Is there anyone out there “in the know”?