Any restrictions on background delivery?

Are there any limitations on how long iOS will continue delivering background updates from HealthKit to the app? Will deliveries be suspended if the user stops opening the app for a few days, a month, or longer?

Answered by DTS Engineer in 798292022

Are there any limitations on how long iOS will continue delivering background updates from HealthKit to the app? Will deliveries be suspended if the user stops opening the app for a few days, a month, or longer?

We've never documented how this works in any formal way (for any of our framework, not just HealthKit) but, yes, I'd expect it to stop working eventually. Background activity like this is managed by the same daemon ("duet") that manages the BackgroundTask framework, which means most daemons end up having roughly the same behavior. In practice, that means that delivery will stop after 1-2 weeks of "inactivity".

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

Accepted Answer

Are there any limitations on how long iOS will continue delivering background updates from HealthKit to the app? Will deliveries be suspended if the user stops opening the app for a few days, a month, or longer?

We've never documented how this works in any formal way (for any of our framework, not just HealthKit) but, yes, I'd expect it to stop working eventually. Background activity like this is managed by the same daemon ("duet") that manages the BackgroundTask framework, which means most daemons end up having roughly the same behavior. In practice, that means that delivery will stop after 1-2 weeks of "inactivity".

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

Any restrictions on background delivery?
 
 
Q