CFNetwork SSLHandshake (-9806) error using NSURLSession when application in background for uploadTask

Before uploading a video using NSURLSession UploadTask, when the application is in the background, I encounter a CFNetwork SSL confirmation error. No problem downloading videos when the application is in the foreground. The problem only occurs when the application is in the background.

+6
background nsurlsession cfnetwork
source share
1 answer

Background NSURLSession handles many things differently, including auth. I would recommend that you carefully read all about background sessions and tasks in the Apple Programming Guide URL URLs , in particular the Background Transfers section.

You can also try to see what happens when you install a session delegate that implements a callback:

-[NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler:] .

+1
source share

All Articles