My task is to get data on the pulse in realtime. For this, I save the data in HealthKit using the workout session type “other”.. The problem is that when using this and other tested types of workout sessions, such as yoga, running and so on, the activity rings are filled. How to get rid of it? Please help me, this problem keeps me awake.
All types of workout sessions tried to not store data to HealthKit after session complete
HKWorkoutConfiguration *config = [HKWorkoutConfiguration new];
config.activityType = HKWorkoutActivityTypeOther;
config.locationType = HKWorkoutSessionLocationTypeIndoor;
HKWorkoutSession *wSession = [[HKWorkoutSession alloc] initWithConfiguration:config error:&error];
[self.healthStore startWorkoutSession:wSession];
[self.healthStore endWorkoutSession:self.workoutSession];