UWP app stays suspended after maximize

60856927 46 Reputation points
2024-09-24T22:33:54.8066667+00:00

My UWP stays suspended even after user brings it to foreground. According to Microsoft docs it should resume from the suspension, but it doesn't. What can be the reason of such a weird behavior? https://imgur.com/a/knguaEV

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 18,651 Reputation points MVP
    2024-09-25T01:00:21.51+00:00

    It could be caused by a problem in handling the suspend-resume cycle or the visibility events.

    Ensure that your UWP app is handling the Suspending and Resuming events correctly.

    You may use Visual Studio's debugging tools to set breakpoints in your app's lifecycle event handlers.

    Check the Windows Event Viewer for any relevant error messages.


  2. Junjie Zhu - MSFT 17,636 Reputation points Microsoft Vendor
    2024-09-26T08:40:22.9733333+00:00

    Hello,

    Welcome to Micrsoft Q&A!

    It seems like this might be a display issue in Task Manager. When a UWP app is actually in a suspended state, you’ll see a suspended icon. This behavior appears to only happen on Windows 11, while it works correctly on Windows 10.

    User's image

    I'd suggest you submit a feedback request about this feature in the Feedback Hub. You could find the Feedback Hub in the Start Menu. Please select Desktop Environment->Task manager as the category when you submit your request.

    The related team will check the request. After you submit the request, please share your link,

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


Your answer

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