WatchOS WKSession turn off Heartrate monitor during background

I am currently working on an app that compiles sensor data to a csv file for use in health applications. This data is collected in the background via HKWorkoutSession. I'm not using any data from the healthstore, however, it is needed to start the workout session. During background run time, the apple watch continuously runs the heartrate monitor (the green light on the back of the watch).

Is there any way to disable this light from turning on? This app must maintain a low battery usage profile so it may run continuously for 12+ hours, however, the heart rate sensor chews through battery life.

Accepted Reply

There is not. As the name implies, the HKWorkout API is explicitly for workouts, and frequent heart rate readings are an integral part of the workout experience.

  • Is there another option for having an app run continuously in the background without establishing it as a background workout session via HKWorkoutSession? Is the only way to establish background app runtime only via also having the heart rate monitor on?

Add a Comment

Replies

There is not. As the name implies, the HKWorkout API is explicitly for workouts, and frequent heart rate readings are an integral part of the workout experience.

  • Is there another option for having an app run continuously in the background without establishing it as a background workout session via HKWorkoutSession? Is the only way to establish background app runtime only via also having the heart rate monitor on?

Add a Comment