NSURLSession background upload

Hi ! i use this configuration for background upload :


configurationUpload = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:@"com.example.upload.session"];

configurationUpload.timeoutIntervalForRequest = 60;

configurationUpload.allowsCellularAccess = YES;

configurationUpload.sessionSendsLaunchEvents = YES;

configurationUpload.discretionary = NO;

configurationUpload.HTTPMaximumConnectionsPerHost = 1;

configurationUpload.requestCachePolicy = NSURLRequestUseProtocolCachePolicy;


....


after months of work, everything works fine but one problem I disheartening ...if for example, sending 50 files (2 or 3 MB for file) and afret 10 min. i add another 10 and then another 10 and then another 10 all in one session, some upload freeze and remain frozen for hours (8 .. 10 hours ...) ... all in wifi with battery 100% ...


What happens, any ideas ??


thanks

There’s a bunch of possible causes for this. If you go to the Core OS > Networking main page, in the Announcements section on the right hand side you’ll find a number of posts that discuss this.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

thanks eskimo, i read and I understand ... sorry, in iOS 7 it was far better transfer, now some advice on what strategy to adopt to send files in the background, for example, there is a way to try to understand if a task in the background it is waiting for a long time ... so for example to cancel it and restart it ?

for example, there is a way to try to understand if a task in the background it is waiting for a long time ... so for example to cancel it and restart it ?

If the task has been delayed for budgetary reasons, cancelling and restarting it won’t help. The new task will still be delayed for exactyl the same budgetary reasons.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
NSURLSession background upload
 
 
Q