krokyze / FitKit

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
BSD 2-Clause "Simplified" License
98 stars 73 forks source link

weight and height empty #16

Closed davidanaya closed 4 years ago

davidanaya commented 5 years ago

Hi,

Thanks for the plugin, it's awesome.

I tested it both with Android and iOS builds and works fine but I can't get any value for Height and Weight. I have it both in Apple Health and Google Fit and I'm reading it with the readAll method. Is this supposed to work? As they are not values within a period of time maybe I need to do it with read only?

davidanaya commented 5 years ago

I was reading the values from the last 5 days and weight and height are not returned unless I update the values. I guess this should not be like that, we should get a proper reading for weight and height even if the values have not been updated in the last 5 days.

krokyze commented 5 years ago

Hey, so currently how this plugin works is reading data types within a period of time. Completely understand your point of view and will add this as a feature request to support reading last value of any data type.

davidanaya commented 5 years ago

Thanks @krokyze

krokyze commented 5 years ago

Let's just leave it open, once it's in the plugin I will close it ;)

krokyze commented 4 years ago

In version 1.0.0 new parameter readLast has been implemented.