I'm working on an app whose requests to the server can end up lasting quite some time, think 10 - 30 minutes. I think it's pretty safe to say that undoubtably, the user will go into the background during the request's execution.
I've got this to properly work using Background Tasks, but as they give you only 3 minutes, the request will snap; not something that is allowed in my use-cases.
I've read up on background modes and possibly using Download and Upload tasks, but my use-case does not conform to any of them. It's a large JSON request/response.
Something that crossed my mind was to maybe save the JSON to a file and send the file itself. That should comply with the background download that's supported by NSURLSession.
Does anyone know of another way? So I don't have to change the request/response structure.
Thanks in advance!