I am developing an application in which i want sign in using google plus. I have follow the steps from https://developers.google.com/+/mobile/android/sign-in
But
Edit /etc/host file on your device. Comment everything except
120.0.0.1 localhost
Put # in front of the line to comment it. Note that you need root access to edit this file.
When following the code example at https://developers.google.com/+/mobile/android/sign-in, I got "Empty consent data" as well.
But calling setScopes()
on the PlusClient
instance seemed to solve the problem:
mPlusClient = new PlusClient.Builder(this, this, this)
.setVisibleActivities("http://schemas.google.com/AddActivity")
.setScopes(Scopes.PLUS_LOGIN, Scopes.PLUS_PROFILE)
.build();
Have you set scopes in your code example?
in my case the problem was that my real device was not connected to internet.