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
Describe the bug
Apple introduced WorkoutKit (https://developer.apple.com/documentation/workoutkit) in iOS 17 to allow users to have pre-programmed workouts (e.g. intervals for running) on their Apple Watch Fitness app. Since this is released, we see that activities using intervals fail to be transmitted completely to our app using react-native-health. The workout route is either not available or only in parts. After some investigation and debugging, we found the attached (screenshot) error:
Illegal callback invocation from native module. This callback type only permits a single invocation from native code.
[...]
__64-[RCTAppleHealthKit(Methods_Workout) workout_getRoute:callback:]_block_invoke_2
__82-[RCTAppleHealthKit(Queries) fetchWorkoutRoute:predicate:anchor:limit:completion:]_block_invoke_2
[...]
To Reproduce
Steps to reproduce the behavior:
Record a running activity with intervals (Outdoor Run > Custom)
Sync data from HealthKit using getAnchoredWorkouts and getWorkoutRouteSamples in Debug Mode
Error occurs and/or route data returned is not complete
Expected behavior
This behavior does not occur for workouts not using any pre-programmed intervals (e.g. Outdoor Run, Open Goal). It is expected that the intervals do not change how the route data is received
Screenshots
Smartphone:
Device: iPhone 11 & Apple Watch Series 7
OS: iOS 18.1 & WatchOS 11
Version 1.18.0
Additional context
The workout shows complete data when looking at it in the iOS Fitness app.
The text was updated successfully, but these errors were encountered:
Describe the bug
Apple introduced WorkoutKit (https://developer.apple.com/documentation/workoutkit) in iOS 17 to allow users to have pre-programmed workouts (e.g. intervals for running) on their Apple Watch Fitness app. Since this is released, we see that activities using intervals fail to be transmitted completely to our app using react-native-health. The workout route is either not available or only in parts. After some investigation and debugging, we found the attached (screenshot) error:
To Reproduce
Steps to reproduce the behavior:
getAnchoredWorkouts
andgetWorkoutRouteSamples
in Debug ModeExpected behavior
This behavior does not occur for workouts not using any pre-programmed intervals (e.g. Outdoor Run, Open Goal). It is expected that the intervals do not change how the route data is received
Screenshots
Smartphone:
Additional context
The workout shows complete data when looking at it in the iOS Fitness app.
The text was updated successfully, but these errors were encountered: