I have an application in which thousands of API calls give me JSON data that I save in coredata using NSURLSession with BackgroundConfiguration. It works fine, but for some downloads it gives me [code = -1 "unknown error"], and then [Code = -997 "Lost connection to the background transfer service"]. I searched the Internet for possible solutions, but could not find a solution.
source
share