Summary:
HomeKit should allow developers to check whether the user has granted Home Data permissions for the application. Currently there isn't a documented way to do so, and developers have to wait for HMErrorCode.HomeAccessNotAuthorized to see that the application is not authorized.
Steps to Reproduce:
Perform some HomeKit operation
Expected Results:
There should be a property to check HomeKit permission without relying on an error - similar to isRegisteredForRemoteNotifications for notifications or authorizationStatus() for CLLocationManager
Actual Results:
Operation returns with error HMErrorCode.HomeAccessNotAuthorized. Only then the application knows Home Data access is not available
Version:
iOS 9.3
Notes:
Configuration:
iPhone 6, T-Mobile 64GB, using WiFi
Description
Summary: HomeKit should allow developers to check whether the user has granted Home Data permissions for the application. Currently there isn't a documented way to do so, and developers have to wait for HMErrorCode.HomeAccessNotAuthorized to see that the application is not authorized.
Steps to Reproduce:
Expected Results: There should be a property to check HomeKit permission without relying on an error - similar to
isRegisteredForRemoteNotifications
for notifications orauthorizationStatus()
for CLLocationManagerActual Results: Operation returns with error HMErrorCode.HomeAccessNotAuthorized. Only then the application knows Home Data access is not available
Version: iOS 9.3
Notes:
Configuration: iPhone 6, T-Mobile 64GB, using WiFi
Product Version: iOS 9.3 Created: 2016-05-12T20:11:14.743610 Originated: 2016-05-12T15:09:00 Open Radar Link: http://www.openradar.me/26251592