My question might be a bit stupid but I am a bit confused after working for the first time with iOS.
I am currently working with Swift and want to do a Post request from the background. To achieve this, I'm using Alamofire and so far its no problem to do a post request with a JSON body which contains Data that the WebApi writes into a Database but I am worried about the timelimit
with a lot of Data to send.
Therefore the Web API got Methods like the following:
AddData(Data[] data){ ...}
the matching Json for example looks like this
[[
"Id" : "65400000-0000-0000-0000-000000000002",
"SomeProperty" : null
]]
representing an Array of Type Data containing just one Data
object.
Question: Is it possible to send a request matching the aforementioned scenario ( a request containing the JSON object in the body not the actual file) from the Background, with the given fact that in iOS it's just possible to do a background upload from a file when the app is suspended after the timelimit
is reached.