Limitations When Launching .NET MAUI Windows App via Custom URI Scheme

Sagar Shinde 0 Reputation points
2025-05-09T07:36:07.6433333+00:00

I've added the following entry to the Package.appxmanifest for my .NET MAUI Windows app to support activation via a custom URI scheme:

After investigating this setup, I observed the following limitations:

Key Findings Windows Focus Restrictions: When the app is already running and is triggered via the custom URI (e.g., abcapp://), Windows does not bring the app window to the foreground. This seems to be a restriction imposed by the OS, requiring explicit user interaction to shift focus to the app.

Lack of Built-in URI Activation Support in .NET MAUI: .NET MAUI currently lacks built-in support or abstraction for handling URI scheme activations on Windows, unlike other platforms like Android and iOS which provide URI intent/deep link handling through MAUI APIs.

Question Are there any recommended workarounds or best practices to: Bring a running .NET MAUI Windows app to the foreground when activated via a URI? Properly handle custom URI activation in MAUI on Windows without relying on platform-specific code? Any guidance or examples would be appreciated!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,104 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 75,386 Reputation points Moderator
    2025-05-09T16:12:25.4966667+00:00

    on windows and macOS, its your apps responsibility to display the active window when opened from a deep link. just call window.Activate() of the window you want to be the active.

    0 comments No comments

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.