-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swim distance, lap count #95
Comments
Does your app let the user choose between Open_Water_Swim and Swimming_Pool? Open_Water_Swim doesn't support laps. Also, are you testing with real-world conditions (i.e. testing while swimming)? |
yes, my app supports 2 swim styles. I've simulated swimming. So, in both cases, the distance doesn't work, and calories don't work for the pool swim style. (when I use an emulator, the distance works fine) exerciseClient.startExerciseAsync(config).await() "If exercise type is SWIMMING_POOL, then swimming pool length must also be specified" Let me know, please, how to solve these issues. |
That exception is thrown when the pool size is either unspecified or when it equals 0. I'm not sure from the code exactly why it is being thrown only when using the emulator, but I can try to look into this. |
I am also encountering the issue of no lap or distance data coming in on After registering a Permissions are enabled for types Any ideas? |
@onix-flutter-dev can you share the Health Services version details for your Galaxy Watch 4? We want to check if the issue is specific to a version of WHS. |
@breanatate |
After updating to Wear OS 4.0 that came out yesterday for Samsung Galaxy Watch 5 this issue seems to be resolved for me. Will test in a pool next week. |
I use implementation 'androidx.health:health-services-client:1.0.0-beta03'
----- start
val capabilities = getExerciseCapabilities(exerciseType) ?: return
val dataTypes = setOf(
DataType.HEART_RATE_BPM,
DataType.HEART_RATE_BPM_STATS,
DataType.CALORIES_TOTAL,
DataType.DISTANCE_TOTAL,
DataType.SWIMMING_STROKES_TOTAL,
DataType.SWIMMING_LAP_COUNT
).intersect(capabilities.supportedDataTypes)
----------------- Prepare
val exerciseType = if (args.isOpenWaterSwimType) {
ExerciseType.SWIMMING_OPEN_WATER
} else ExerciseType.SWIMMING_POOL
...
after starting an exercise I never catch distance or lap count an event.
So, can you help me? How to fix it?
also ExerciseType.SWIMMING_POOL doesn't support DataType.DISTANCE_TOTAL if I call supportsDistanceMilestone()
I use a real device Galaxy Watch4 (model SM-R870).
The text was updated successfully, but these errors were encountered: