问题
We have a Fitness app and we are writing fitness data to the Healthkit like Steps, Walking Running distance, and Active energy. and it is working as expected in the Health App
We also writing Workout data for Apple watch activity ring, we can show our data is reflected on the Apple Watch activity ring for Active Energy but Exercise Minutes ring being updated from workout start-end time not from the Duration
The problem here is the Exercise ring vs Actual exercise done.
Our app is sending the workout data to Apple Health every 30 minutes, workout data contains the total distance, total energy burned, startDate, endDate, or duration properties.
So the app is sending the workout data for a 30 minutes time interval with the actual duration of the exercise done between the 30 minutes of interval.
Say for Eg: 30 minutes is the time interval(From 12:00 to 12.30) and actual exercise done between this duration is say 01:32 minutes.
The Move ring here shows actual data that our app writes but the Exercise ring shows different data than our app writes.
The Exercise ring here should show 1/30 instead of 30/30.
Here Excercise ring considers the total workout interval(30 Minutes)but not considered the total time(01:32 minutes Actual Duration)to create the Excercise Ring.
t
I've followed this document to create a workout sample for the Activity ring
So my question is, is there a way by which the Apple Watch activity ring can display my app data(exercise duration) on the Exercise Minutes ring?
For reference, I've attached a screenshot and highlighted the Excercise portion on the same.
来源:https://stackoverflow.com/questions/65323810/apple-watch-exercise-minute-ring-being-updated-from-workout-start-end-time-not-f