xcode - Liferay iOS sign-in: onSuccess is not called after signIn -
i new liferay. trying liferay ios sdk 7.0.3, trying follow brief tutorial @ https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/invoking-liferay-services-in-your-ios-app
but got stuck on, signinwithsession method.
after establishing session [[lrsession alloc] initwithserver: authentication: initwithusername: password:]
then have
[session onsuccess:^(id result) { nslog(@"signin success"); } onfailure:^(nserror *e) { nslog(@"signin failure, , error %@", e); } ]; [lrsignin signinwithsession:session callback:session.callback error:&error];
when username/password combination wrong, onfailure gets called, , prints error
signin failure, , error error domain=com.liferay.mobile.sdk code=2 "java.lang.securityexception" userinfo={nslocalizeddescription=java.lang.securityexception}
but when correct username/password combination used, onsuccess block not called. don't see "signin success" in console log.
my imports are
#import "lrbasicauthentication.h" #import "lrsession.h" #import "lrsignin.h"
any ideas may happening , can try?
gah, bug in ios sdk 7.0.3! see https://web.liferay.com/community/forums/-/message_boards/message/71261220 . apparently, fixed in 7.0.4.
at least know liferay forums ..
Comments
Post a Comment