Complete
over 4 years ago

CIQQA-223

getProfile().restingHeartRate return null

e.g. my f6pro return null, full description in:

https://forums.garmin.com/developer/connect-iq/f/discussion/260625/averagerestingheartrate-and-restingheartrate-values

  • In my opinion, this is working as expected, although maybe it could be documented better (e.g. the docs don't mention that UserProfile.restingHeartRate can be null).

    UserProfile.restingHeartRate is what's configured on the watch: Settings > User Profile > HR > Resting HR (which can be null / not set up, custom, or "use (7-day) average").

    I don't think Garmin can change restingHeartRate to reflect the daily resting heart rate because that would break all existing code which expects it to be the user profile RHR (which is used for heart rate zones based on HRR, and for the HRR% metrics.) It's pretty clear why Garmin doesn't use daily RHR for this purpose, as it could cause heart rate zones to change every day.

    If anything:

    - the docs for restingHeartRate could be improved (since averageRestingHeartRate is now in UserProfile as well, it may be unclear whether restingHeartRate refers to the user settings or the daily measured resting heart rate)

    - it could be a feature request (not bug report) to make daily resting heart rate available in CIQ.

  • I had "null" in settings in position resting HR in watch's user profile after changed it's shows the same like av7d but it isn't still good because resting1d resteng7d are different value (today in my case: 1d=49 an 7d=55 from Garmin Connect).