Apple Watch Exercise Minute ring being updated from workout start-end time not from the Duration

自闭症网瘾萝莉.ら 提交于 2021-01-07 01:22:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!