We have come across an issue with HealthKit authorization in iOS 9 beta. The authorization call for healthkit - requestAuthorizationToShareTypes is not returning the expected value in "success" parameter.
Per apple docs the "success" parameter in completion block is supposed to return NO, if user cancelled the prompt without permission. However in iOS 9 beta, when user taps "Dont Allow" - "success" value is "YES" and "error" value is nil. https://developer.apple.com/library/prerelease/ios/documentation/HealthKit/Reference/HKHealthStore_Class/index.html#//apple_ref/occ/instm/HKHealthStore/requestAuthorizationToShareTypes:readTypes:completion:
Please let us know if this is expected change in behavior or an issue with iOS 9 completion callback
Thanks!