HMHomeManagerDelegate calling while app is in foreground

  • As per the Apple documentation of HMHomeManagerDelegate, this protocol will give you the action which are performed outside of the app.
  • When creating or removing the Home inside our app, this protocol’s delegate method shall not call.
  • But in some cases, below delegate methods are called even when the creation operation performed within the application which should not happen.
  • So after “didAdd” delegate method calls HomeManager home has two home with same name.
  • And may be because of that, application getting the home remove event through “didRemove” delegate method.

optional func homeManager(_ manager: HMHomeManager, didAdd home: HMHome)

optional func homeManager(_ manager: HMHomeManager, didRemove home: HMHome)

So, can anyone please help that in what case the delegate method called while creating home inside application?

HMHomeManagerDelegate calling while app is in foreground
 
 
Q