perfood / capacitor-healthkit

Capacitor plugin to interact with HealthKit
https://www.npmjs.com/package/@perfood/capacitor-healthkit
56 stars 46 forks source link

How to read carbohydrates, fat and proteins ? #30

Closed leobenini closed 4 weeks ago

leobenini commented 1 year ago

Hi perfood, thank you for your plugin,

I need to read from healthkit the quantities of carbohydrates, total fats and proteins from the dietary.

I notice that are not managed the keys: dietaryFatTotal, dietaryCarbohydrates, dietaryProtein.

How can I do to read other types of samples from the healthkit's api?

Thank you, Leonardo

mahnuh commented 1 year ago

Hi @leobenini, we are currently working on a complete rewrite of this plugin, check the v2 branch. Dietary information currently is not on our roadmap, but feel free to open a pull request! Manuel

Vatanay commented 4 weeks ago

@mahnuh hi. Also, we need the user's current permission status. Google fit integration would be awesome also.

edit: just saw the getAuthorizationStatus :)

mahnuh commented 4 weeks ago

Hi @Vatanay for GoogleFit we have a separate plugin.