Hi,
We have added the request time-out detection in our latest SDK.
App42 SDK throws exceptions in case of wrong parameter like null, empty or no internet connection or request time-out etc.
You should always call APIs inside try-catch block as follows:
@try
{
NSString *userName = @"User Name";
NSString *password = @"******";
User *user = [userService authenticateUser:userName password:password];
NSLog(@"User Name=%@",user.userName);
NSLog(@"Email = %@",user.email);
NSLog(@"SessionId = %@",user.sessionId);
}
@catch (App42Exception *exception)
{
NSLog(@"Exception = %@",[exception reason]);
NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
NSLog(@"App Error Code = %d",[exception appErrorCode]);
NSLog(@"User Info = %@",[exception userInfo]);
}
@finally
{
}