0

I need to call 180 sequential serial GET request (After completion on one request will fire another request) and response time is 32 sec for each request, when App is in background mode and user locked iPhone. 180 * 32 = 5760 seconds == 96 min.

I have tried with NSURLSessionDataTask, after calling approx 120 request it will be in suspended state or some times iOS kills app itself. FYI, App is using VOIP and BLE services

halfer
  • 19,824
  • 17
  • 99
  • 186
Anurag Dixit
  • 119
  • 2
  • 16
  • 1
    almost a year ago, i had a very similar situation in a iOS analytic app. the solution was to use background services (in my case, location update always). that kept app running in background for maximum time with high priority. but os can terminal if other apps needed memory. i have tested the solution for more than 5 hours in background, running all the task(mostly api hits) – Pawan Rai Jun 06 '17 at 09:24
  • Did you use NSURLSessionDataTask ? Can you please share your exact code here... Might be I am doing some silly mistake – Anurag Dixit Jun 06 '17 at 09:39
  • No, it uses NSURLConnection sendSynchronousRequest. – Pawan Rai Jun 06 '17 at 09:46
  • Would you add the code you have tried, Anurag? – halfer Jun 06 '17 at 10:21

0 Answers0