The iOS Google Fit app shows Resting Heart Rate as one of it's metrics (I have not seen it in the Android Google Fit app, however). I would like to show Resting Heart Rate in an Android app using Google Fit Data. However, the Android Google Fit API does not seem to present this data.
I have tried a read request both by DataType.TYPE_HEART_RATE_BPM
and by aggregating DataType.TYPE_HEART_RATE_BPM
and DataType.AGGREGATE_HEART_RATE_SUMMARY
as shown here:
DataReadRequest.Builder()
.aggregate(DataType.TYPE_HEART_RATE_BPM, DataType.AGGREGATE_HEART_RATE_SUMMARY)
.bucketByTime(1, TimeUnit.DAYS)
.enableServerQueries()
.setTimeRange(startDate.time, endDate.time, TimeUnit.MILLISECONDS)
.build()
The summary gives lowest, highest, and average for a particular time range, but not resting heart rate. Is there a way to get the calculated resting heart rate from the Google Fit Android API?