macOS/Windows AppLinks

Ángel Rubén Valdeolmos Carmona 586 Reputation points

I have a requirement that when the user visits a website protocol with certain parameters (, the desktop application must open and read those parameters, I know that this is possible on iOS/Android, on desktop too? where can i read doc.

in Windows/macOS it would be something like this?

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

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,041 Reputation points Microsoft Vendor


    I know that this is possible on iOS/Android, on desktop too? where can i read doc.

    Sure, For UWP platform please refer to Enable apps for websites using app URI handlers document, you could register to handle HTTP and HTTPS links in the app manifest and then associate your app and website with a JSON file, when you navigate the specific uri in the browser, it will launch the app automatically. You can get AbsolutePath from OnActivated method, then navigate to matched page with parameter.

    For macOS, you could check the macOS part here :
    I check the links in your question, CFBundleURLSchemes is suitable for macOS as well. It's similar to iOS, see: Try to add CFBundleURLTypes in your app, and launch your app in Safari for testing.

    I see the tag is dotnet-maui, you may need to invoke platform code. If you have any other issues, feel free to let me know.

    Best Regards,
    Wenyan Zhang

    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful