NSURLSession
seems like a great new API. Sadly, documentation is still lacking.
I am planning on supporting NSURLSession
background modes. I read that, these tasks will only download on the Apple daemon if the user is connected over Wifi, and if he has sufficient battery remaining. So if I queue some tasks, and the aforementioned conditions are not met, the task will await until they are. But what happens if the user opens the application and the data is missing? Will the pending tasks execute despite lack of wifi or low battery? Should I be cancelling them and starting them as data tasks in-process? I am aware of the discretionary
property, but would tasks scheduled in the background start once the app is launched/resumed?