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?
source
share