ios - GPPSignIn birthday attribute missing -
i want users birthdate code:
gtlqueryplus *query = [gtlqueryplus queryforpeoplegetwithuserid:@"me"]; gtlserviceplus* plusservice = [[gtlserviceplus alloc] init]; plusservice.retryenabled = yes; [plusservice setauthorizer:authobj]; [plusservice executequery:query completionhandler:^(gtlserviceticket *ticket, gtlplusperson *person, nserror *error) { if (error) { gtmloggererror(@"error: %@", error); } else { nsstring *birthday = [person birthday]; } }]; this scope:
googlesignin.scopes = @[ kgtlauthscopepluslogin ]; i got informations, birthday nil. if check object in runtime doesn't have ""birthday" key-value pair.
anyone has idea how solve it?
thanks
the person resource (which powers queries) includes birthday field if has been shared publicly in user's profile settings. true of fields in person resource. guaranteed values name, profile image, profile link, , age range, may work purposes.
Comments
Post a Comment