https://github.com/queeniecplusplus/ios_back_6
Async Downloader in Background
https://github.com/queeniecplusplus/ios_back_6
async ios14 ios8 swift4 swift5 urlsessiondownloadtask xcode10 xcode12
Last synced: 5 days ago
JSON representation
Async Downloader in Background
- Host: GitHub
- URL: https://github.com/queeniecplusplus/ios_back_6
- Owner: QueenieCplusplus
- Created: 2021-01-27T12:35:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-29T12:32:10.000Z (about 5 years ago)
- Last Synced: 2025-03-13T13:13:45.441Z (11 months ago)
- Topics: async, ios14, ios8, swift4, swift5, urlsessiondownloadtask, xcode10, xcode12
- Language: Swift
- Homepage: https://github.com/QueenieCplusplus/QuickGoThru#apple-ios-swift-溫故愛鳳---計畫復甦
- Size: 1.22 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iOS_Back_6
Async Downloader in Background using URLSessionDownloadTask.
1. setup in Info Property List, however this setup value effects the apps approval before the release phase.

2. 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!
3. output

4. ref
https://zh-tw.coderbridge.com/series/01d31194cb3c428d9ca2575c91e8b997/posts/c44ba1db0ded4d53aec73a8e589ca1e5
5. allow Download Task running in Background.
https://github.com/QueenieCplusplus/iOS_Back_16
