We are using the Homekit framework in our application and we are facing a strange issue.
As per the below Apple documentation HMHomeManagerDelegate protocol provide updates regarding home changes made outside the application.
https://developer.apple.com/documentation/homekit/hmhomemanager
In our case, we are receiving a delayed response from HMHomeManagerDelegate even though the home add/remove operation is performed from the same app and not from the outside. Please find below the steps.
- Launch the app and delete 'ABC' Home
- Log out from the app and close the app.
- Relaunch and login to the app
- Create the home 'ABC'
- HMHomeManagerDelegate:didAddHome reports 'ABC' home created
- HMHomeManagerDelegate:didRemoveHome reports 'ABC' home deleted. It is delete home response for step 1.