NSURLSessionDownloadTask seems to eat all bandwidth while downloading file in background session

Hi,

I am using NSURLSessionDownloadTask to download movies in the background but found when I create background session and run tasks, it seems to be eat all network bandwidth and throttle all other api's calls in the app. Due to this my all other simple GET/POST calls are getting timed out. As soon as download task is completed api's start to work smoothly. NSURLSessionDownloadTask is async calls so it should not take all bandwidth as user has to use app while downloading file in the background.


This isse is more observed in iOS 10 iphone 5s device.


thanks,

Amir

Replies

Due to this my all other simple GET/POST calls are getting timed out.

Are you running those requests in a background session? Or in a separate standard session?

Share and Enjoy

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

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