Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a WinRT app continue to run while Screen Off?

Can a WinRT app continue to run while Screen Off?

I know that a WinRT application can create a Background Task that periodically executes even when the application is not running. Handy, but not what I am asking. What I am asking is, when the user clicks the power button and invokes Connected Standby, is there anything an app can do to remain active. Can it ask for some special capability?

Example - in Windows Phone there is a handy Running and Walking app that keeps track of "where you are" while it is running - then tallies your distances, etc. Even when the screen is off! Turn the screen on and the "where was I" map is up-to-date. Is this type of application possible in WinRT?

like image 725
Jerry Nixon Avatar asked Oct 08 '22 14:10

Jerry Nixon


2 Answers

I've been looking into the same thing recently, and unfortunately it seems that what you want to do isn't possible with WinRT.

like image 119
LeigerGaming Avatar answered Oct 12 '22 10:10

LeigerGaming


Why don't you use Background task to simulate what you are trying to achieve. When the user starts the app again, you could have the info populated to the latest data by looking at the store where the background process updated. Just a thought.

like image 21
edocetirwi Avatar answered Oct 12 '22 12:10

edocetirwi