Hacker News new | ask | show | jobs
by krtkush 2571 days ago
IMO, any app that needs to download file sin background needs this. Audible and Pocket Casts for me personally because there are times when I want to download files for offline use and I have to keep the app open till the download is not complete.
1 comments

On Apple's platforms you can get this with a background NSURLSession. It lets you express concepts like "Download this URL at a convenient time, preferably when the device is plugged in and connected to Wifi" or "Start downloading this now, but keep going even after this app is closed."

It's definitely more work to figure out than regular foreground URL fetching, though.

https://developer.apple.com/documentation/foundation/url_loa...