HKActivitySummary documentation missing information regarding how to populate activity summary values
| Originator: | dloewenherz | ||
| Number: | rdar://32717350 | Date Originated: | June 12 2017, 1:17 PM |
| Status: | Open | Resolved: | |
| Product: | Documentation | Product Version: | |
| Classification: | Reproducible: |
Summary: Per rdar://29144768, developers should be able to write Activity Summaries to Health.app, but the explanation I received in that bug report is not visible on the public documentation. This documentation should be available so that developers can understand how to add to the user's Activity Summaries. > 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. Steps to Reproduce: 1. Navigate to the HKActivitySummary documentation. Link: https://developer.apple.com/reference/healthkit/hkactivitysummary 2. Look for documentation on this page on how to save activity summaries to the user's local health store. Expected Results: The documentation contains information how to add HKActivitySummary data to Health.app. E.g., from the previous radar I filed: > 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. Observed Results: The documentation states: "You can instantiate your own HKActivitySummary objects (if needed), but you cannot save HKActivitySummary objects to the store." Version: iOS 10.3.2 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!