I developed a quick Watch Face and want to display the current Hearth Rate exactly same way as Hearth Rate widget.
I used this code to achieve that:
var HRH=Act.getHeartRateHistory(1, true);
var HRS=HRH.next();
var HRSnow=HRS.heartRate;
if(HRSnow!= Act.INVALID_HR_SAMPLE){
heartRateText = HRSnow;
}
The problem with this is that it refreshes (only) each minute, so it's not accurate at all. Is there a way to get last Hearth Rate calculated by device and get it refreshed every second?