BGTaskScheduler not working properly

I am developing one application which has to perform some network operation time to time. I am not using push notifications. I am using BGTaskScheduler to perform some background operations but it does not seem to be working consistently all the time. I got BGTask callback on 30 minutes, sometimes on 9 minutes and sometimes even not at all.

When user force kill the app does BGTaskScheduler work?

Doesn’t it work when battery power is low?

Can someone provide enough informations when it does or does not work.

Answered by mcpttdev in 701082022

iOS 13+ devices.

I am developing one application which has to perform some network operation time to time.

What platform are you targeting?

Share and Enjoy

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

Accepted Answer

iOS 13+ devices.

iOS 13+ devices.

OK. In that case your expectations are unrealistic. See iOS Background Execution Limits for more on this, and especially watch the WWDC preso that it references.

Oh, and as I mentioned in that post, if you can post more details about what your app is specifically trying to do, I should be able to advise you as to the best path forward.

Share and Enjoy

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

BGTaskScheduler not working properly
 
 
Q