-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where exactly is Heart Rate Data in Fitness activity results #530
Comments
I believe there is a few minutes delay to sync heart rate data from Apple Watch to iPhone's HealthKit. And if the heart rate data is in real time, then you should be able to see a heart rate label at the bottom on the walking step. |
@YuanZhu-apple Thanks for your response. I did not try with a heart rate strap. But through Apple Watch doesn't self.workoutSession = HKWorkoutSession(activityType: .Running, locationType: .Indoor)
self.workoutSession!.delegate = self;
// Start the workout session
self.healthStore.startWorkoutSession(self.workoutSession!) And |
If you have real time health data collected from the Apple Watch and are trying to query it from it's paired iPhone, you will likely have some trouble. The Apple Watch doesn't stream fitness data in real time to the iPhone because this would be a huge battery drain, especially for long workouts (think of runners training for a marathon where they could be exercising for over 5 hours). The Apple watch batches up its health kit data and syncs it with the iPhone at opportune times. Normally, this happens within a few minutes of completing a workout. I have noticed that if I want to view HealthKit data immediately after completing a workout on the apple watch I need to open the health app on the iPhone to manually trigger a sync. One thing to try is to make sure you are relating your health samples to the workout you end up recording. If you just let the apple watch collect the samples, it won't know that they belong to a specific workout. This is how health results like average heart rate and splits show up in the activity app.
|
This is basically not an issue. Where exactly will I get the heart rate data while using the Fitness activity ? Even I don't see the Heart Rate identifier in the below code
And I heart rate was stored continuously to HealthKit through an app in apple watch at the same time of taking the fitness test.
![img_0004](https://cloud.githubusercontent.com/assets/5825355/10483926/a7c72612-729f-11e5-98b4-da0b84beec23.PNG)
The text was updated successfully, but these errors were encountered: