enable Background Delivery
Enables HealthKit background delivery for step-count data.
When enabled, iOS will wake the app periodically (approximately hourly) when new step data is written to HealthKit.
Prerequisites:
com.apple.developer.healthkit.background-deliveryentitlementUIBackgroundModesincludesfetchin Info.plistHealthKit permissions must already be granted
Call disableBackgroundDelivery to stop.
Enables HealthKit background delivery for step-count data.
When enabled, watchOS will wake the app periodically (approximately hourly) when new step data is written to HealthKit. Each wake-up emits a Unit on healthDataUpdates.
Call disableBackgroundDelivery to stop.