Search code examples
ioshomekit

HomeKit Develop: addUser funcion deprecated in iOS 10. How to add user?


I would like to enable my Homekit App to add another user. I though I could use function addUserbut according to link https://developer.apple.com/documentation/homekit/hmhome/1620213-adduser

some user-related functions had deprecated. Is there any alternate function for addUser? How can I add user in Homekit app in iOS 10?

Thanks!!!

enter image description here

The error description is Optional("Operation is not supported.")


Solution

  • Here is the latest functions you can use. Doesn't look like they really replaced it with anything. I am assuming because of security reasons.

    Users now have to add other users from their HomeKit. Developers do not have the right anymore.

    https://developer.apple.com/documentation/homekit/hmhome