Missing entitlement for API HomeKit
问题 I have used HomeKitCatalog code to communicate with Home app to execute scenes and add accessory. It works as expected in app in foreground. When my app went to background/suspend mode, sending silent notification run scene. But it throws exception " Missing entitlement for API ". Is it related to provisional profile issue? Can anyone help to move forward? 回答1: Developer can't control HomeKit from background https://forums.developer.apple.com/thread/22279 来源: https://stackoverflow.com