dariosalvi78 / cordova-plugin-health

Cordova plugin for the HealthKit and Google Fit frameworks
MIT License
176 stars 127 forks source link

Nutrition #336

Open asivaneswaran opened 3 weeks ago

asivaneswaran commented 3 weeks ago

Hi,

I would like to know if any work is ongoing for nutrition (calories, protein, carbs, fat)? I believe it's a very priority data no in the current time

I know it was there before but was removed with Health Connect.

Thanks,

dariosalvi78 commented 3 weeks ago

not being done at the moment, but can be prioritized. API details are here: https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/NutritionRecord

asivaneswaran commented 3 weeks ago

It would be great if we can prioritize this. I can help if needed if you can show me examples of commits that was done to add previous data to android.

thanks

dariosalvi78 commented 3 weeks ago

it's not hard! if you look at the Android code for any other data type, the structure is always the same. It's important to keep the interface with the JS world coherent between iOS and Android, that's the only, sometimes, tricky bit.

asivaneswaran commented 2 weeks ago

@dariosalvi78 https://github.com/dariosalvi78/cordova-plugin-health/pull/339

Let me know if it seems ok with you!

asivaneswaran commented 1 week ago

@dariosalvi78 You haven't tagged a new release after the MR.

Thanks,