Post

Replies

Boosts

Views

Activity

Reply to WatchOS HealthKit HKObserverQuery crashes in background
I have the same problem, I am monitoring HRV data using HKOberserQuery + enableBackgroundDelivery with HKUpdateFrequency.hourly . in HKOberserQuery i only gets the latest one HRV sample. I make sure HKObserverQueryCompletionHandler is called correctly, but I see a lot of CSLHandleBackgroundHealthKitQueryAction crash log on the watch logs, and I'm seeing the same logs on other apps too!
Apr ’25
Reply to HKObserverQuery not working in background
@DTS Engineer Hi, I'm having an issue with HealthKit background delivery on watchOS 11.3.1, I'm using HKObserverQuery and I'm experiencing CSLHandleBackgroundHealthKitQueryAction watchdog transgression crash. I confirm that I have called HKObserverQueryCompletionHandler correctly and in time. Is there any special requirement for the code to call HKObserverQueryCompletionHandler? For example, does it have to be in the main thread?
Mar ’25
Reply to Is there any way to expose an AppIntent that lives in the app package or an AppIntentExtension to a widget?
I found a better solution for interaction Live Activity. You can create a struct impletion LiveActivityIntent then add it to widget target and app target. Create two files, one add to widget target, other one add to app target, each extension your Intent and write one same function. Widget target function can empty, app target function is real code. In perform call your function in extensions file. Above steps make sure compile success and when interaction intent, System will execute your real code in App Process.
Topic: App & System Services SubTopic: General Tags:
Aug ’23