I'm working on a background upload using NSUrlSessionUploadTask.
What happens is we create one upload task to upload the initial data, server returns an Id we can associate further uploads with.
So we create more tasks as the response comes back.
And then I came across this piece of information.
"If the background transfer is initiated while the app is in the background, the configuration object’s
discretionary
property is treated as being true
."Does this mean the second set of tasks we create will not be able to upload unless the phone is connected to wifi?
Or is that even considered to be in "Background" since technically the app was woken up and relaunched through the handleEventsForBackgroundURLSession delegate?
But if it does, how could we allow cellular uploads in background?
Unfortunately my company haven't given us SIM cards to test this out, so I have to rely on your wisdom.
Thank you very much.