We are building an iOS app that offers a local notification after a user saves a workout in Apple's Workout app on Apple Watch. Tapping the notification should open the flow for that specific workout. The user starts and ends the workout in Apple's app, and we are looking for a public API that does not require a Shortcuts automation or a workout session started by our app. Our target is roughly 10 seconds after the user taps End, including with the paired iPhone locked.
On a physical iPhone running iOS 27.2.1, we register an HKObserverQuery for HKWorkoutType at application launch, enable background delivery with .immediate and query recent workouts with HKSampleQuery when the observer fires. Both HealthKit entitlements are present and registration succeeds. The app has been opened once, is not force-quit, and the test runs without a debugger. We schedule a local notification only after identifying the saved workout.
With the iPhone unlocked, the workout appeared immediately in our app, and the notification and its tap worked. With the iPhone locked, no notification appeared for about two minutes after ending the workout. It appeared on unlock. In a repeat, the available logs show the first successful read around unlock and the notification request being accepted in the same second. They do not establish whether the observer was invoked before unlock or whether the new workout was already in the iPhone's HealthKit store.
Apple Platform Security describes a 10-minute window for loss of access to health data and temporary journal files. In thread 694223 an Apple engineer describes callbacks being deferred until the Health database becomes available. In thread 774953 DTS suggests observing the watchOS HealthKit store and relaying changes with Watch Connectivity for a related use case.
- For a workout saved by Apple's Workout app, what iOS behavior should we design for before and after that 10-minute window? Can the observer wake and a query return the newly saved workout before unlock, or can the watch-to-phone sync or journal merge defer both?
- Can a companion watchOS app that only reads workouts observe a newly saved
HKWorkoutfrom Apple's app while the companion is in the background? IsHKWorkoutTypeeligible for prompt background delivery on watchOS, or is the watch-side relay limited by the normal delivery budget? If another public completion signal exists for this flow, which API should we use?