flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[health 4.0.0] Can't read workout data

Open REVBorislav opened this issue 3 years ago • 13 comments

Hi,

Could you please assist me with fetching workout data. I am running this issue on newer android versions, and one older ones the app just crashes.

Device

  • Device: Huawei P30 lite
  • OS: Android 10

Description A clear and concise description of what the bug is. After trying to fetch wourkout data, I am given the following error:

I/FLUTTER_HEALTH::ERROR(19790): 4: The user must be signed in to make this API call. I/FLUTTER_HEALTH::ERROR(19790): [Ljava.lang.StackTraceElement;@db19cd5

Reproduce Using the given example code and steps from the pub.dev website.

Flutter doctor [✓] Flutter (Channel stable, 3.0.2, on macOS 12.4 21F79 darwin-x64, locale en-CZ) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.67.2) [✓] Connected device (3 available) [✓] HTTP Host Availability

• No issues found!

Thank you in advance.

REVBorislav avatar Jun 19 '22 11:06 REVBorislav

@REVBorislav, is workout data fetching working for ios for health 3.4.4?

sunilk44 avatar Jun 21 '22 13:06 sunilk44

@sunilk44 I get the following error when fetching data using version 3.4.4 E/MethodChannel#flutter_health( 1695): java.lang.IllegalArgumentException: Unsupported dataType: WORKOUT.

Thanks.

REVBorislav avatar Jun 21 '22 14:06 REVBorislav

@sunilk44 Hi, sorry, I kinda overlooked the ios part of your message. Health 3.4.4 does fetch workout data on ios.

REVBorislav avatar Jun 21 '22 18:06 REVBorislav

@REVBorislav Hi, thanks for replying

sunilk44 avatar Jun 22 '22 04:06 sunilk44

Not working on Android for me as well. That's the entire reason why I updated

rsbthebest avatar Sep 14 '22 08:09 rsbthebest