[health 4.0.0] Can't read workout data
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, is workout data fetching working for ios for health 3.4.4?
@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.
@sunilk44 Hi, sorry, I kinda overlooked the ios part of your message. Health 3.4.4 does fetch workout data on ios.
@REVBorislav Hi, thanks for replying
Not working on Android for me as well. That's the entire reason why I updated