BackgroundSession SessionDownloadTask when locking screen, Error: NSPOSIXErrorDomain Code = 1
I have a NSURLSessionDownloadTask with a backgroundSessionConfigurationWithIdentifier . When I lock the screen, this exception occurs: Error Domain = NSPOSIXErrorDomain Code = 1 "The operation could not be completed Operation not permitted.". This error occurs only on my phone, it does not appear on other phones. below is the simple code: NSURLSessionConfiguration *sessionConfiguration = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:@"com.edu.downLoadTest"];; AFURLSessionManager *_session = [[AFURLSessionManager alloc] initWithSessionConfiguration:sessionConfiguration