Done! I’ll start testing with this.
I changed from HKObserverQuery(queryDescriptors: ...) to HKObserverQuery(sampleType: ...) to only observe changes in steps. However, with HKStatisticsCollectionQueryDescriptor, I fetch: averageHeartRate, steps, durationMinutes, distanceMeters, and activeCalories, because observing with queryDescriptors retrieves samples individually for each metric. Thanks again!
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags: