Reputation: 287
We have an app with a feature like a get real-time workout data via Bluetooth—including strides, distance, calories burned, active time, and more.
We have also integrated the Health app so we are able to write/read data easily (i.e Active energy, Steps and Walking + Running distance) in the Health app.
Now our question is Apple health is recording steps from our app but these steps are not making it watch activity rings.
Is there any way to reflect our workout data in an apple watch activity ring (move ring)?
Currently, Our app is made for iPhone, Do we need to create a watch app for that?
Please suggest any solution if have.
Upvotes: 0
Views: 1142
Reputation: 264
From Using Workout Samples | Apple Developer Documentation:
Filling the Rings
Workout samples can contribute to the Move and Exercise rings in the Activity app. To contribute, you must associate one or more active energy burned samples with the workout. Additionally:
In watchOS. Use a workout session to track the user’s activity. When the session has ended, create a workout object and the associated active energy burned samples. For more information, see HKWorkoutSession. The system updates the Move ring based on the active energy burned samples. It updates the Exercise ring based on the amount of time the user spent actually exerting themselves during the workout session, as calculated by the watch’s sensors.
In iOS 10 or later. No additional work is necessary. Workout objects automatically contribute to both the Move and Exercise rings. The Exercise ring is increased by the workout’s total duration, and the Move ring is increased by the number of calories in the associated active energy burned samples. HealthKit also increases the Stand ring by one hour for each wall-clock hour that the workout overlaps.
In iOS 9. Workout objects saved on iPhone do not contribute to the activity rings.
Create and save workouts on the device that makes the most sense for your application. This will typically be the device that is running the logic for the user's workout.
Upvotes: 1