AVAssetDownloadDelegate method not called in background

139 views Asked by At

In a recent project I'm working on video downloading using AVAssetDownloadURLSession. I'm using AVAssetDownloadDelegate to listen to any download updates. Using the below method I'm able to get the percentage download updated for each download task.

urlSession(_:aggregateAssetDownloadTask:didLoad:totalTimeRangesLoaded:timeRangeExpectedToLoad:for:)

Issue:

The above method doesn't get called when the app is in Background. There is nothing mentioned in the Apple docs regarding the method's foreground and background behaviour.

How can I clarify how the method works? And what is the way around if I want to get the background updated as well?

0

There are 0 answers