lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

26251592: Support checking Home Data permissions for HomeKit #14681

Open openradar-mirror opened 8 years ago

openradar-mirror commented 8 years ago

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:

  1. 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

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

openradar-mirror commented 8 years ago

Modified: 2016-05-12T20:16:47.471670