Post

Replies

Boosts

Views

Activity

Retrieving long-term HealthKit HR data on an Apple Watch
I am pretty new to Swift development and I am currently developing my first project where I calculate the stress level of a person using the Heart Rate Variability samples from HealthKit. I finished the iOS app where I request all HRV samples from the past 120 days, this works perfectly. But when I try to do the same in my Apple Watch project, I am only able to retrieve data from the past 8 days. This seems weird to me, since the data is recorded on the Apple Watch itself and HealthKit has a shared database. I am wondering if HealthKit just limits the predicates to 8 days for HR data on the Apple Watch or if this might be a problem with my Apple Watch? Thanks in advance.
2
0
1.1k
Jan ’21