Google Plus Signin Android Invalid Service -


i trying sign in using google plus on app, have generated certificate fingerprint , all, yet when go token using googleauthutil.gettoken(...) error.

error log:

09-04 14:04:39.904  13462-13474/? e/glsuser: empty consent data  09-04 14:04:39.904  13462-13474/? i/glsuser: gls error: invalidservice  

this code using try token

string scope = string.format("oauth2:server:client_id:%s:oauth2:%s", client_id,     scopes.plus_profile + " " + scopes.plus_login); token = googleauthutil.gettoken(this, plusclient.getaccountname(), scope); 

any suggestions?

i figured out, have specify server api key in google api console under section key android apps certificates

string scope = string.format("oauth2:server:%s:client_id:%s:oauth2:%s", api_key, client_id, scopes.plus_profile + " " + scopes.plus_login); 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -