iOS Background Task Time Interval Questions

Hello!

We are currently working on our iOS project, and we plan to make a feature that the app could send an HTTP request every 10 to 15 mins while the app is in the background mode.

We tried to use BGAppRefresh and BGProcessing, and we found the time interval is about 30 mins for BGProcessing (when the device is locked) and the time interval of BGAppRefresh is not guaranteed.

From what we learned from Apple documents, the BGAppRefresh and BGProcessing time intervals are both controlled by the system. I want to ask if there are any ways to control the background refresh time to reach our goal, or if there are some other methods we could use.

Appreciate anyone could answer this.

Thanks!

Answered by DTS Engineer in 729304022

we plan to make a feature that the app could send an HTTP request every 10 to 15 mins while the app is in the background mode.

There is no good way to do that. For more… ahem… background on this issue, see iOS Background Execution Limits.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

we plan to make a feature that the app could send an HTTP request every 10 to 15 mins while the app is in the background mode.

There is no good way to do that. For more… ahem… background on this issue, see iOS Background Execution Limits.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

iOS Background Task Time Interval Questions
 
 
Q