Capturing both workout AND heart rate data #81
Unanswered
beaux-riel
asked this question in
Q&A
Replies: 1 comment
-
The approach we use at Kingstinct is to associate the quantitySamples with the time period of the workout. So we query and import the quantitySamples and workouts individually. I think this is the way Apple intended it. Is that helpful? What we've done so far is try to not duplicate documentation that is already available through Apple, try to keep naming as close as possible to HealthKits native implementation, and provide helpful TypeScript documentation with relevant links. All of this could probably be improved, suggestions and PRs more than welcome :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi community,
I seem to be having a bit of a hard time wrapping my head around how to use this repo. I love that it's mapped to Apple HealthKit, however when I jump back and forth between Apple documentation and this repo... I don't know, I'm getting lost somewhere.
I'm trying to capture a user's workouts and the associated heart rate data for that session. Below I've created a component in order to understand the different variables better. While I have managed to capture the last 14 days of workouts, I can't seem to capture the associated heart rate.
Ideally, I would like for a user to sign-up to my app, and then any workout they record after that sign-up date/time appears in-app with the associated heart rate data.
Could someone please help me to understand where I'm going wrong? How do I capture a user's workout AND heart rate data for the same session? Any and all help is very much appreciated.
And here's the util I made to capture the 14 days of workout data:
Beta Was this translation helpful? Give feedback.
All reactions