HKStatisticsQuery does't work in Glance

Originator:ogawahideko
Number:rdar://24255333 Date Originated:20-01-2016
Status:Open Resolved:
Product:watchOS Product Version:
Classification: Reproducible:
 
Summary:
When my AppleWatch app is running (include inactive state),
HKStatisticsQuery does not call completionHandler that was executed in Glance.

After the AppleWatch app terminated explicitly, it will be come back.

I think that HKStatisticsQuery should work after AppleWatch app becomes inactive state.
This issue occurs even "Complication".

Steps to Reproduce:
1. Install the attached application
2. Show Glance of this app
    (At this time, HKStatisticsQuery work successfully.)
3. Launch the Apple Watch app by tap to glance
4. Show again the Glance

Expected Results:
 Step Count label shows number of your steps.

Actual Results:
Step Count label couldn't show steps.
Because, CompletionHandler has not been called.


Continue to do the following steps,

5. Terminate the Apple Watch app
6. Show again the Glance

Then, Query results will be come back.

Version:
watchOS2 ver 2.1 (13S661)

Notes:


Configuration:
XCode ver7.2(7C68)

Attachments:
'HealthTest.zip' was successfully uploaded.

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!