cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
550 stars 674 forks source link

[health 3.4.4] No way to add Correlation #550

Open adiltirur opened 2 years ago

adiltirur commented 2 years ago

I have been writing data to apple health from the plugin with HealthDataType.BLOOD_PRESSURE_SYSTOLIC and HealthDataType.BLOOD_PRESSURE_DIASTOLIC. But unfortunately, When I go to apple health this data is not there. But when I export apple health Data I can see the BLOOD_PRESSURE_SYSTOLIC and BLOOD_PRESSURE_DIASTOLIC.

After further inspection, I found that We need to add this as a Correlation to show them on the Apple Health Blood Pressure Page. Is there a way to do this?

Cardoso-mmhg commented 2 years ago

Yes i noticed this too. I also noticed that for Android's google fit. It is required to write for both Systolic and diastolic at the same. The Api in health 3.4.4 only allows us to write each datatype individually.

Here is the official document: https://developers.google.com/fit/scenarios/write-bp-d

MadsVSChristensen commented 2 years ago

Hey @adiltirur

Thanks for pointing this out! Health doesnt support this atm. It is not planned if this is going to be implemented - feel free to do a pull request if you have made it work.

Best regards, Mads