Post

Replies

Boosts

Views

Activity

Reply to Health data on iPad via iCloud
Samples have HKDevice associated with them and you can determine what the local device is. More information available here: https://developer.apple.com/documentation/healthkit/hkdevice/local() You can also utilize this in predicates for queries.
Topic: Health & Fitness SubTopic:
Health & Fitness Q&A
Jun ’26
Reply to App created by Xcode 13.3+ crash on iOS 12 physical devices at launch
HKElectrocardiogramQuery is only available on iOS14.0 (https://developer.apple.com/documentation/healthkit/hkelectrocardiogramquery?language=objc) So its usage on an iOS 12.0 device will cause crashes. If you want to support iOS 12.0 devices, you'd have to set the minimum iOS version in the build settings under iOS Deployment Target. And if your app uses API that were introduced in iOS versions > 12.0 then you need to add availability checks in your code.
May ’22
Reply to Health data on iPad via iCloud
Samples have HKDevice associated with them and you can determine what the local device is. More information available here: https://developer.apple.com/documentation/healthkit/hkdevice/local() You can also utilize this in predicates for queries.
Topic: Health & Fitness SubTopic:
Health & Fitness Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to Observe HealthKit data changes with locked iPhone by Face ID
The HealthKit datastore is inaccessible when the device is locked, so you will not get any updates at that time.
Replies
Boosts
Views
Activity
May ’23
Reply to App created by Xcode 13.3+ crash on iOS 12 physical devices at launch
HKElectrocardiogramQuery is only available on iOS14.0 (https://developer.apple.com/documentation/healthkit/hkelectrocardiogramquery?language=objc) So its usage on an iOS 12.0 device will cause crashes. If you want to support iOS 12.0 devices, you'd have to set the minimum iOS version in the build settings under iOS Deployment Target. And if your app uses API that were introduced in iOS versions > 12.0 then you need to add availability checks in your code.
Replies
Boosts
Views
Activity
May ’22