Quantcast
Channel: SCN : Discussion List - SAP for Mobile
Viewing all articles
Browse latest Browse all 5806

[MAFLogonCore registerWithContext:] crashing

$
0
0

Application is crashing when using MAFLogonCore to perform on boarding with SMP.

 

It works fine when I use MAF UI or SMPClientConnection for on boarding. Crashing only when i'm using MAFLogonCore not sure what I'm missing, Please check the code below.

 

    MAFLogonCore *lc = [[MAFLogonCorealloc] initWithApplicationId:@"com.company.smpapp"];

    MAFLogonCoreState *state = [lc state];

    NSLog(@"Logon State: %@",state);

    if (!state.isRegistered){

   

    lc.traceEnabled = YES;

    lc.performanceTraceEnabled = YES;

    //lc.traceLevel

    NSError *error = nil;

    MAFLogonContext *mafContext = [lc getContext:&error];

    NSLog(@"User Register Error: %@",error);

    MAFLogonRegistrationContext *regContext = mafContext.registrationContext;

   

//    regContext.applicationId = @"com.prokarma.saptsm";

    regContext.serverHost = @"xxx.xxxxxx.com";

    regContext.serverPort = 8080;

    regContext.backendUserName = @"username";

    regContext.backendPassword = @"password";

    regContext.isHttps = NO;//[ConnectivitySettings useSSL];

    //regContext.securityConfig = @"Generic_USER_PASS_auth";

   

    lc.logonCoreDelegate = self;

    [lc registerWithContext:mafContext];

 

    }

 

Thanks,

Jak


Viewing all articles
Browse latest Browse all 5806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>