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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -