HKWorkoutSession: don't contribute to rings

I'm working on an app that monitors heart rate using HKWorksoutSession and I don't want the activity to be added to the activity rings. It's currently adding to Move Calories and Excerise Minutes.


Is there a way to configure it without saving any activity data?

Did you find a solution? I have the same problem...

Hi falsevacuum & tom-715,

I am still hunting for a solution on this. I recently noticed that the makers of "cardiogram" have been able to fix this. They state this in their last update.


So, I am still not successful - since I don't add the data to the health store and my app is not even asking permission to write to it. Which leads to the conclusion it might be a bug of the framework?


Thanks guys, for any hint.

Starting HKWorkoutSession will always contribute to the Exercise Ring but not the Move Ring unless you exclusivily write to healthkit.


I am guessing what Cardiogram did is after the data is written to HealthKit automatically, it programtically removes the data.

Pause the workout session as soon as you start it.

https://stackoverflow.com/a/64288974/8174191
HKWorkoutSession: don't contribute to rings
 
 
Q