New running metrics (runningPower, runningSpeed) not working in watchOS 9 beta 2

I'm using watchOS 9 beta 2 and I'm not getting the new running metrics in my workout app.

  • Using HKLiveWorkoutDataSource attached to a HKWorkoutBuilder
  • ActivityType is running
  • Tried enabling the collection of the new metrics

According to Jorge M in the WWDC labs:

"Yes, the new running metrics are also available for 3rd party applications. If you are using an HKLiveWorkoutDataSource attached to a HKWorkoutBuilder in your application, the new metrics would be collected by default."

The Health app does not show any Related Samples for these types. Am I doing something wrong or are they not available yet to 3rd party workouts? I do see them for the Apple Workout app.

Replies

The metrics are collected for outdoor (and not indoor) running workouts and only on SE/Series 6 or later. If you're trying that config and it's not working, please file a feedback at feedback.apple.com with a sample project.

  • Thanks for the additional information. It was an outdoor run with a series 6 watch.

    Are the metrics collected by default and added to the workout or do I need to enabled them (I've tried both)?My min deployment target is 6.1. Does that matter?

    Thanks, Jeff

  • They should be collected by default. Just to be clear, you set the HkWorkoutConfiguration.locationType to outdoor? You can check what data types are collected by looking at HKLiveWorkoutDataSource.typesToCollect and also adding types to it. If everything looks right, please file a Feedback

Add a Comment