3 ms·
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 f
by krtkush 7y 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.
- pjscott 7y agoOn 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_loading_system/downloading_files_in_the_background?language=objc https://developer.apple.com/documentation/foundation/url_loa...