Exercise minutes are not populated after writing a workout to Health.app

Originator:dloewenherz
Number:rdar://32739919 Date Originated:June 13 2017, 11:00 AM
Status:Closed Resolved:June 20 2017, 8:37 AM
Product:iOS + SDK Product Version:iOS 11.0 (15A5278f)
Classification:Serious Bug 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.

However, no summary data in exercise minutes appears after writing a workout to the health store.

Steps to Reproduce:
1. Open the attached project ("Radar13Jun2017.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 (see attachment "A.png").
9. Now tap on "Exercise Minutes"

Expected Results:
An hour of exercise minutes is shown to have been logged for the day.

Observed Results:
No exercise minutes are visible. (see attachment "B.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!