heart rate function :Activity.getActivityInfo().currentHeartRate
se not work on older watches if forerunner235 or hr 3
what should i do?
heart rate function :Activity.getActivityInfo().currentHeartRate
se not work on older watches if forerunner235 or hr 3
what should i do?
How long since an activity was recorded? The data can go state after a while, and on older devices (CIQ 1) may not be updated in real time.
You may be able to fall back to
ActivityMonitor.getHeartrateHistory() and use the newest sample (a few minutes old any times), but I'm not sure.
Then there is no way to get it in a WF on those devices. Per the API doc, it's been available since 1.2.1
Get the heart rate history for the given period, up to the last power cycle.
This function always returns the most recent heart rate samples. The time between each HeartRateSample in the iterator may be device dependent.
Parameters:
The order in which to retrieve heart rate samples
true
to get the samples newest first
false
to get the samples oldest first
Returns:
An iterator for the heart rate history for the given period
Since:
1.2.1