You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to save a workout with health.writeWorkoutData() exception occurs for the HealthWorkoutActivityType.BIKING_MOUNTAIN activityType like this:
Exception has occurred.
HealthException (Error requesting health data type 'HealthWorkoutActivityType.BIKING_MOUNTAIN' - cause: Workout activity type HealthWorkoutActivityType.BIKING_MOUNTAIN is not supported on Android)
Flutter doctor
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.22000.2538], locale pl-PL)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 3.2)
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.84.1)
[√] Connected device (4 available)
[√] Network resources
Additional information
The enum HealthWorkoutActivityType {} defined in the data_types.dart should be verified for other issues like that.
The text was updated successfully, but these errors were encountered:
rafaellop
changed the title
[HEALTH] Exception has occurred. HealthException (Error requesting health data type 'HealthWorkoutActivityType.BIKING_MOUNTAIN' - cause: Workout activity type HealthWorkoutActivityType.BIKING_MOUNTAIN is not supported on Android)
[HEALTH] Error requesting health data type 'HealthWorkoutActivityType.BIKING_MOUNTAIN
Nov 20, 2023
It seems the _isOnAndroid() function in health_factory.dart doesn't have updated list of workout FitnessActivities available on Android. I'll try to complete the list and send a PR.
Device / Emulator and OS
Describe the bug
When trying to save a workout with
health.writeWorkoutData()
exception occurs for theHealthWorkoutActivityType.BIKING_MOUNTAIN
activityType like this:Flutter doctor
Additional information
The
enum HealthWorkoutActivityType {}
defined in thedata_types.dart
should be verified for other issues like that.The text was updated successfully, but these errors were encountered: