The problem was isolated to tokens generated by my IOS users only.
It seems that the token I was getting through the IOS SDK was bad for using with the API call I mentioned in my question (https://www.googleapis.com/oauth2/v2/userinfo
). Tokens generated by the Android SDK were working okay with the mentioned call.
So to find a common ground, I had to use the following API call from my server:
https://www.googleapis.com/plus/v1/people/me?access_token=...
You should get an object similar like this one (omitted the personal fields):
{
kind:"plus#person",
etag:"...",
gender:"male",
emails:[
{
value:"...",
type:"account"
}
],
urls:[
{
value:"...",
label:"Buzz"
}
],
objectType:"person",
id:"...",
displayName:"...",
name:{
familyName:"...",
givenName:"..."
},
url:"...",
image:{
url:"..."
},
isPlusUser:true,
language:"en",
ageRange:{
min:21
},
verified:false,
cover:{
layout:"banner",
coverPhoto:{
url:"...",
height:626,
width:940
},
coverInfo:{
topImageOffset:0,
leftImageOffset:0
}
}
}