HealthKit Water Consumption Doesn't Sync to watchOS

Originator:SlaunchaMan
Number:rdar://22577312 Date Originated:04-Sep-2015 11:44 AM
Status:Closed Resolved:10-Sep-2015 05:56 PM
Product:watchOS SDK Product Version:Xcode Version 7.0 beta 6 (7A192o)
Classification:Serious Bug Reproducible:Always
 
Summary:
Whenever I try to read the user’s water consumption from a WatchKit app, I get nothing. Doing it from the iPhone app works, it just doesn’t work from watchOS.

Steps to Reproduce:
1. Create a WatchKit app that reads water consumption using the same source code as an iPhone app that reads water consumption.

Expected Results:
The WatchKit App will receive the user’s water consumption data once authorized from HealthKit.

Actual Results:
Searching for water consumption always returns no results.

Version:
Xcode Version 7.0 beta 6 (7A192o)
watchOS Version 2.0 (13S5325c)
iOS Version 9.0 (13A4325c)

Notes:
Attached is a sample project for reading water consumption. I found this in my watch’s console output:

Sep  4 11:40:40 Jeffs-AppleWatch healthd[47] <Error>: HDAuthorizationManager: authorization request finished unsuccessfully: Error Domain=com.apple.healthkit Code=100 "Authorization session timed out" UserInfo={NSLocalizedDescription=Authorization session timed out}

Configuration:
Happens on both hardware and simulator.

Attachments:
'WaterConsumption.zip' was successfully uploaded.

Comments

Source Code

You can find the sample project here: https://github.com/SlaunchaMan/RadarSampleProjects/tree/master/22577312/WaterConsumption

By SlaunchaMan at Sept. 4, 2015, 3:50 p.m. (reply...)

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!