Element not found (exception from HRESULT: 0x80070490) when calling BackgroundExecutionManager.RequestAccessAsync ()

When I try to get lockscreenaccessstatus by calling BackgroundExecutionManager.RequestAccessAsync()WinRT when I first run my application, I get this exception:

(Exception from HRESULT: 0x80070490)

Oddly enough, this problem no longer occurs in the second (and subsequent) application launch.

I read that as a workaround, we can enter Task.Delay(1000)just before the call BackgroundExecutionManager.RequestAccessAsync(). But it doesn't seem to work for me. Any ideas?

+4
source share
1 answer

, , , . , BackgroundExecutionManager.RequestAccessAsync() , . .

+2

All Articles