Reputation: 5
RKObjectManager *manager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:BASE_URL]];
PPPSynchronization *synchObj = [[PPPSynchronization alloc] init];
[synchObj configureRestKitWithManager:manager withSyncType:CUSTOMER_POST_DATA];
class_customer_list_request *requestObj;
NSMutableURLRequest *request = [manager requestWithObject:requestObj method:RKRequestMethodPOST path:PPP_ESM_POST_COMPONENT parameters:postDict];
[request setTimeoutInterval:300];
RKObjectRequestOperation *op = [manager objectRequestOperationWithRequest:request success:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
...
}failure:^(RKObjectRequestOperation *operation, NSError *error) {
}];
[manager enqueueObjectRequestOperation:op];
My code is perfectly working in iOS Simulator
and when i run on real device it is not working.It waits 5 minutes to get the response in simulator but in device it dies after 1 minute.Please give me a solution.
Upvotes: 0
Views: 115