I have a new Android smartphone and here's what I get when trying to login with Google:
-
What phone is this? What's the OS version? – ruohola Nov 2 '18 at 15:23
-
S9, Android 8.0.0 – Tilman Hausherr Nov 2 '18 at 15:35
-
2The problem is you are using an application that was left behind. I'm amazed it doesn't even read "Stack Exchange". – Camilo Terevinto Nov 2 '18 at 20:45
-
2what do you mean with "left behind" - should I get an iPhone instead? – Tilman Hausherr Nov 3 '18 at 9:48
-
3Nah, the Stack Exchange / Stack Overflow apps development stopped like a year ago or something like that – Camilo Terevinto Nov 3 '18 at 14:02
-
Re mobile app dev having ended: meta.stackexchange.com/questions/299862/… – T.J. Crowder Nov 4 '18 at 15:25
-
Does anyone know if we can enable push notifications for new item in our inbox somehow without the app? – Jamie Twells Nov 21 '18 at 11:37
Add a comment
|
This is fixed.
When the Android and iOS apps perform a Google login, we get back an access_token or id_token that from Google that we then use to retrieve the email address and validate that the token is associate with one of our apps. To do this, we hit Google's tokeninfo
endpoint, checking the email
and audience
/aud
fields. Accoring to their documentation and even their API explorer, you should be able to pass fields=email,audience
as a parameter to limit the fields that are returned.
At some point, however, that broke (as demonstrated by executing the this request). Fortunately, by just dropping the fields
parameter, we can get Google to send back all of the fields and we can just read the two we care about.