Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
/ NoUWPAutoSuspend Public archive

Prevent UWP apps from getting automatically suspended.

License

Notifications You must be signed in to change notification settings

Aetopia/NoUWPAutoSuspend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoUWPAutoSuspend

An application to prevent Windows from automatically suspending UWP apps when they are minimized or cloaked when in fullscreen.

Aim

The obvious question is why prevent UWP apps from automatically suspending when not active?
In some cases, this be undesirable behavior if the target app needs to be running even when not active.
There is an API available for this which prevents UWP apps from being suspended by system.
Except one may not post these apps onto the store but may sideload them, by using this program or the very implementation this program uses, one may bypass that.

Usage

  1. Download the latest release from GitHub Releases.

  2. Now obtain the Package Family Name for the desired UWP apps that are supposed to be not suspended.
    Only include apps that might require this functionality like real time applications.
    Use the following command in Windows PowerShell to locate the desired names:

    (Get-AppxPackage).PackageFamilyName
  3. Once you obtain the desired names, start it like this
    Note: Package Family Names are case sensitive!

    NoUWPAutoSuspend.exe windows.immersivecontrolpanel_cw5n1h2txyewy
  4. The application will sliently in the background.
    Now simply minimize or make the target app(s) fullscreen and switch to a Win32/Desktop app to have the system cloak it.
    The target app(s) will not be suspended by the system.

Build

  1. Download and install the .NET SDK and .NET Framework 4.8.1 Developer Pack from:
    https://dotnet.microsoft.com/en-us/download/visual-studio-sdks

  2. Run the following commands:

    dotnet restore NoUWPAutoSuspend/NoUWPAutoSuspend.csproj
    dotnet build NoUWPAutoSuspend/NoUWPAutoSuspend.csproj --configuration Release