ios - HomeKit: Check for permission -


i have ios application using homekit , need check if application can access homekit store. noticed, homemanagerdidupdatehomes called anyway. how check homekit store permission?

edit: apparently doesn't work anymore. unfortunately, i'm not doing hk development anymore. see @windwalker's comment below info.

[[hmhomemanager alloc] init] 

will return nil if don't have access home. other homekit inits return nil, that's 1 i'm checking since it's first thing try once app loads.


Comments