I am working with HKWorkout for the same time, and I'm not clearly seeing how these types work. I am used to HKQuantityType but this is not a direct translation. In particular, how can I request permission to read certain types in the HKStore? In particular I am trying to request permission for HKWorkoutActivityTypeEquestrianSports but I am not managing to produce the correct type of object.
How to request HealthKit permissions for HKWorkout type?
287 Views Asked by helloB At
1
You should simply request authorization to read/write samples of the
HKWorkoutsample type. There are not fine-grained authorization controls for each individual activity type, such asHKWorkoutActivityTypeEquestrianSports, in HealthKit.