Skip to content

Conversation

@kvenn
Copy link

@kvenn kvenn commented Nov 3, 2025

On iOS, you can send metadata information with each workout. This PR adds support for all currently available HKMetatdata keys classified as "Workout".

https://developer.apple.com/documentation/healthkit/hkmetadatakeyworkoutbrandname

Other considerations:

  • This should be fully backwards compatible with existing version (the metadata field is optional)
  • HKMetadataKeyActivityType and HKMetadataKeyAppleFitnessPlusSession are only available in iOS 17+ (they will no-op otherwise)
  • This concept doesn't exist in Google Health Connect, so it will be ignored

Supported Metadata Types

  • HKMetadataKeyWorkoutBrandName
  • HKMetadataKeyIndoorWorkout
  • HKMetadataKeyGroupFitness
  • HKMetadataKeyCoachedWorkout
  • HKMetadataKeyAppleFitnessPlusSession (17+)
  • HKMetadataKeyActivityType (17+)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant