I am trying to authenticate the user following this gist by Ian Barber. The button asks for the user account, but it never gets to show the authorization dialog and instead exits with the message "An internal error ocurred". Logcat shows this:
W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
E/GLSUser ( 4353): Empty consent data
I/GLSUser ( 4353): GLS error: INVALID_KEY [email protected] oauth2:https://www.googleapis.com/auth/plus.login
W/GLSUser ( 4353): Status from wire: Unknown status: UNKNOWN
The certificate used to sign my app is the same configured at my Google API Console page, and the package name is also the same.
This happens when your certificate has been added in the "Simple API Access" section instead of "Client ID for installed applications". In the Google API console of your project click "Create an OAUTH2 client ID" (NOT "Create new Android Key"), select "Android" and introduce your SHA1 and package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With