NSURLSession: background upload and then call a service api

后端 未结 4 2050
我在风中等你
我在风中等你 2021-02-15 01:33

I was trying to use the new ios7 background transfer api to upload some photos to a server. what it happened now is 1) we upload the bytes to s3 2) call a service api to \'compl

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-15 02:27

    If you want a simpler solution than repurposing NSURLSessionDownloadTask for your "completed" API call, you can round trip a quick http call during the callback in:

    -URLSession:task:didCompleteWithError:

提交回复
热议问题