ios - Google Sign-In SDK 2.0.1 (GIDGoogleUser Class) -


i'm trying implement new signin sdk google plus login, , trying information

previous sdk

nslog(@"email     = %@", [gppsignin sharedinstance].authentication.useremail); nslog(@"googleid  = %@", person.identifier); nslog(@"user      = %@ %@", person.name.givenname, person.name.familyname); nslog(@"gender    = %@", person.gender); nslog(@"user image= %@", person.image.url); 

i did information:

new sdk

nslog(@"googleid :%@", user.userid); nslog(@"email %@", user.profile.email); nslog(@"user :%@", user.profile.name); nslog(@"image url :%@", [user.profile imageurlwithdimension:1]); //gender ? 

from google documentation

but problem getting gender, have no idea how now..

i think can find both using person.gender, person.image only. here person.gender string can use directly , person.image nsdictionary can image using key name.

edited answer: please try image url:

nsurl *imageurl =     [[gidsignin sharedinstance].currentuser.profile imageurlwithdimension:dimension]; 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -