How to obtain access to 'HumanPresenceSettings. SetingsChanged'
The "HumanPresenceSettings" instance I returned through this method, 'humanPresenceSettings=await HumanPresenceSettings. GetCurrentSettings Asynchronous ()', can read the relevant settings. However, when I subscribe to 'HumanPresenceSettings. SetingsChanged' or call the 'HumanPresenceSettings. updateSetes()' method, it throws an exception 'Access is denied.' (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). What else do I need to do?
UWP Package.appxmanifest:
<Capabilities>
<Capability Name="internetClient"/>
<DeviceCapability Name="webcam"/>
<DeviceCapability Name="humanPresence" />
</Capabilities>
windows Settings: