Hacker News new | ask | show | jobs
by joemag 2570 days ago
Frankly, looking at all my apps, the only use-case I have for background tasks is Google Photos, who I want to automatically upload my recent photos to the cloud. A very distant second would be communication apps running some kind of reconciliation once or twice a day, in case some notifications were missed.

I have no desires for any of my other apps to execute any tasks in the background.

2 comments

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.
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...

And unfortunatelly iOS version doesn't use background tasks. So when in background it won't sync any of your photos. And app will also warn you about that.