Share via

UWP SystemTrigger'd background task doesn't run while in battery saver

Jonathan Chen 1 Reputation point
2021-04-16T02:20:06.137+00:00

I have a DesktopBridgeToUWP apps which registers an in-process background task that must run when Session Connected.

The background task runs effectively after the computer has been started up. As soon as the computer goes in battery saver and re-boot system the task doesn't run anymore. When the computer is plug-in AC and reboot system, the task runs again.

Is this true or doesn't this apply to system triggered background tasks? And have any method to allowed task runs?

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

2 answers

Sort by: Most helpful
  1. Andrew Eckrich 16 Reputation points
    2021-04-20T21:26:19.747+00:00

    Try opening the BIOS on pc start,most use the f2 key or esc button.in BIOS chk the battery conditions..also in control-panel,open power settings,edit the tabs...

    Was this answer helpful?

    0 comments No comments

  2. AryaDing-MSFT 2,916 Reputation points
    2021-04-16T08:12:58.717+00:00

    Hi,

    Welcome to Microsoft Q&A!

    The offical document mentions “ In Battery Saver mode, it cuts off all background activity of all apps when the battery level drops below a user-defined threshold, except for the background activity of apps that have been set to "Always allowed." “

    So you could try to set your app background activity to “Always allowed”. On desktop and mobile devices running Windows 10, version 1607 or later, users can view their "Battery usage by app" in the Battery section of the Settings app, then they will see a list of apps, select your uwp app to open up controls related to background activity and change it.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.