cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
551 stars 681 forks source link

NUTRITION data is crashing the app #994

Closed navaidali closed 2 months ago

navaidali commented 4 months ago

We are using health: ^10.2.0

When we try to read NUTRITION data from health connect, the app crashes. We have tried on multiple testing devices but the app crashes on all of the devices. The flutter app is unable to get NUTRITION Data.

Code Causing the crash

protein = await health.getHealthDataFromTypes( types: [HealthDataType.NUTRITION],startTime:startTime, endTime: endTime,includeManualEntry:false, );

thelexhibition commented 4 months ago

+1 Also interested in this fix

shubhamsinghmutualmobile commented 3 months ago

We are using health: ^10.2.0

When we try to read NUTRITION data from health connect, the app crashes. We have tried on multiple testing devices but the app crashes on all of the devices. The flutter app is unable to get NUTRITION Data.

Code Causing the crash

protein = await health.getHealthDataFromTypes( types: [HealthDataType.NUTRITION],startTime:startTime, endTime: endTime,includeManualEntry:false, );

I hope this helps you: https://github.com/cph-cachet/flutter-plugins/issues/950#issuecomment-2271673230

SlimShadyIAm commented 3 months ago

Hi,

Thanks for raising this issue. Are you experiencing this on Android or iOS?

SlimShadyIAm commented 3 months ago

And could you provide a stack trace of the crash?

SlimShadyIAm commented 2 months ago

This should be resolved in the upcoming 11.0.0 release.