Exercise minutes are not populated after writing a workout to Health.app without an Apple Watch
| Originator: | dloewenherz | ||
| Number: | rdar://32874101 | Date Originated: | June 20 2017, 10:42 AM |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | 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 an Apple Watch is available, workouts added to the health store from today or yesterday will populate exercise minutes (see rdar://32739919), but if no Apple Watch is available, no exercise minutes will be populated.
Steps to Reproduce:
1. Open the attached project ("Radar13Jun2017.zip").
2. Build and run in the simulator. Note: Do not pair an Apple Watch with the simulator. If an Apple Watch is already paired, unpair it.
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!