Wear OS: live heart rate during workouts (with recovery-based rest timer)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 44/100
Research direction
Start by reading the Wear OS WearSession screen and the existing Kotlin platform bridges; the issue proposes HeartBridge.kt with an EventChannel and MeasureClient for the first step. Check the Android manifest permissions and available Wear OS health service support. Done for step 1 means live BPM appears during an on-screen workout; recovery rest timing, summaries, and background recording are broader follow-up work.
Written by the indexing model from the issue text.
Description
What I'd like
Live heart rate on the watch app during a workout, read straight from the watch's sensor.
Right now heart rate only shows up after the workout, when the phone pulls it from Health Connect into hrAvg / hrMax. That needs Android 14+ and another app writing heart rate to Health Connect. Reading it on the watch would make it work for every watch user, live, with nothing else installed.
Where it goes
- Workout screen (
WearSession): current BPM next to the elapsed time in the header row. Optionally, the_EdgeRingtakes on the color of the current heart rate zone. - Rest timer: an option to end rest (or buzz) when heart rate has recovered, meaning it has dropped below a set BPM or fallen a set amount from the last set's peak, instead of only after a fixed time. This is the part I'm most excited about. Few strength apps do it, and it fits lifting better than cardio-style zones.
- Session summary: the watch fills
hrAvg/hrMaxitself. The phone's Health Connect lookup only runs whenhrAvg == null, so the watch's numbers would just win, and the fields already sync ashra/hrm. - Later: peak heart rate per set (a new optional field on
LoggedSet), live heart rate on the tile/complication, and heart rate in FIT export /RouteSample.hrfor cardio.
How it could work
- Wear OS Health Services (
androidx.health:health-services-client). It's part of Wear OS 3+ and runs fully on-device: no internet, account or Play Services. So it should fit the app's offline rules. - A small
HeartBridge.ktstreaming BPM to Flutter over anEventChannel, like the existing bridges. - Step 1,
MeasureClient: live heart rate only while the app is on screen. Small and low-risk. - Step 2,
ExerciseClient: keeps recording with the screen off and gives average/max. It needs a foreground service, and only one app can run a workout at a time, so it would end a Samsung Health workout that's already running. - Permissions:
android.permission.health.READ_HEART_RATEis already in the manifest. AddBODY_SENSORSwithmaxSdkVersion="35"for Wear OS 5.1 and older. Only turn the feature on for watches on API 30+ that have the sensor, since minSdk is 24.
Caveats
- Wrist heart rate lags and gets noisy during heavy, grip-intensive sets. It's most reliable between sets, which is why the recovery-based rest timer is the core of this.
- Only sync summaries (average, max, per-set peak), not raw readings, to keep the Bluetooth sync small.
Happy to help test, or open a PR for step 1 if this sounds good.
- Dominant language
- Dart
- Stars
- 844
- Forks
- 98
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from InlitX/GymMane
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
InlitX/GymMane#529 · 1 comment ·
Maintainers usually reply within 1 day
-
Order of weights and repsPossibly taken @palmerovicdev claimed this today. Openbug claim-pending
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
InlitX/GymMane#508 · 4 comments ·
Maintainers usually reply within 1 day
-
Missing exercisesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
InlitX/GymMane#482 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
InlitX/GymMane#480 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
InlitX/GymMane#528 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Python example: list a model's scenes and their camerasPossibly taken @rudraparmar76 claimed this today. Opendocumentation good first issue python
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
iamahsanmehmood/openskp#796 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Openbug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
crowdin/flutter-sdk#97 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
MrSpideyNihal/lockfeed#16 ·