Outlook IOS SDK login -


i'm trying login outlook using ios sdk, explained here: https://msdn.microsoft.com/en-us/library/hh243641.aspx. login screen, usually, has 2 steps: (1)enter user , password, (2) approve permissions. far works, , can retrieve data want. problem whenever run app again, way retrieve data reconnect. press button, , shows again login screen. tile step (2) presented. approve permissions, , smooth again. should clear because i'm using basic template, , yet user has login again each time app runs.

this code:

- (void)viewdidload { [super viewdidload]; self.liveclient = [[liveconnectclient alloc] initwithclientid:app_client_id                                                      delegate:self                                                     userstate:@"genesis"]; }  - (void) authcompleted:(liveconnectsessionstatus)status            session:(liveconnectsession *)session          userstate:(id)userstate { if (session != nil) {     self.label2.text = @"you signed in."; } }  - (void) authfailed:(nserror *)error       userstate:(id)userstate { self.label2.text = @"fail"; }  - (ibaction)butonpressed:(id)sender { if (self.liveclient.session == nil) {     [self.liveclient login:self                     scopes:[nsarray arraywithobjects:@"wl.signin", nil ]                   delegate:self                  userstate:@"signin"]; } } 

what doing wrong?

don't know why it's not documented, added wl.offline_access permissions.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -