Open ciriousjoker opened 7 months ago
i have the same problem... did you find a solution?
I think I was missing a permission.
Apparently for workouts you also need other implicit permissions. There's an issue in this repo somewhere about it
me too.. did anyone solve it?
@JongHyun9999 I figured out what caused the crash and a fix for it, you can see it here: https://github.com/quentinleguennec/flutter_health_connect/commit/da03ad8c05157373244ae4d2ea56c7855c9ad829
BUT: This fix only fixes the crash, which allows to see what was causing the error to start with. This is due to Google changing things on their side (for the Privacy Policy), you can read more about it here: https://github.com/cph-cachet/flutter-plugins/issues/800#issuecomment-1807409934
Since this plugin is not being maintain I recommend trying this other plugin instead: https://pub.dev/packages/health
Ok, so I tried to move from this unmaintained plugin to the maintained health plugin but it just does not have enough for my need, so I started updating this plugin to support Android 14 and more.
This is still a work in progress, but feel free to look at the code here: https://github.com/quentinleguennec/flutter_health_connect/tree/feature_added_aggregate_function In particular I updated the Readme to show what's necessary to show the privacy policy on your side when a user taps the button in the permission activity, and I also updated the example app so you can test it.
hi @quentinleguennec and @ciriousjoker did anyone find how to ask permission in background with workmanager? Because my app works perfect bu in background told me, that I need permissions and i dont kown why
I'm not using this package anymore.
@carlos1219 I'm not sure I understand the question, what are you trying to do and what does the error look like?
Steps to reproduce:
Expected: Health Connect should open
Actual: App crashes