Exercise minutes are not populated after writing a workout more than 2 days old to Health.app
| Originator: | dloewenherz | ||
| Number: | rdar://32874011 | Date Originated: | June 20 2017, 10:36 AM |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK / Health App | Product Version: | iOS 11.0 (15A5278f) |
| Classification: | Reproducible: | Always |
Area:
Health App
Summary:
Per rdar://29144768, third party apps should be able to add workouts to Health.app to populate the activity rings. Full note from radar:
> Summary values are computed from other values that third party apps can get write access to. You don’t write appleExerciseTime, you write a workout or other activity and the summary query takes those into account automatically. Activity Summaries should never get write or share access.
When a workout from today or yesterday is added to the health store, it is added correctly once a paired Apple Watch processes the workout. However, workouts that occurred more than two days in the past have no effect on exercise minutes for those past days.
Steps to Reproduce:
1. Open the attached project ("Radar20Jun2017.zip").
2. Build and run in the simulator.
3. Allow access to writing workout data.
4. Tap "Continue" after you have provided access.
5. Wait until the alert has appeared that says "Workout has been saved."
6. Open Health.app.
7. Tap "Activity".
8. Note that a 1 hour workout has been logged in the workout section for this month (see attachment "Radar20Jun2017-1.png").
9. Now tap on "Exercise Minutes".
10. Tap on the "M" label in the segmented control at the top.
Expected Results:
An hour of exercise minutes is shown to have been logged for the month.
Observed Results:
No exercise minutes are visible. (see attachment "Radar20Jun2017-2.png")
Version:
iOS 11.0 (15A5278f)
Notes:
Configuration:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!