Async Downloader in Background using URLSessionDownloadTask.
-
setup in Info Property List, however this setup value effects the apps approval before the release phase.
-
code
let url = URL(string: "https://www.windy.com/25.038/121.564?24.467,121.564,8,m:emSajxL") let config = URLSessionConfiguration.default let session = URLSession(configuration: config) //let downloader = session.downloadTask(with: <#T##URLRequest#>, completionHandler: <#T##(URL?, URLResponse?, Error?) -> Void#>) let dl = session.downloadTask(with: url!
-
output
-
ref
-
allow Download Task running in Background.