Hello,
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 : https://developer.apple.com/documentation/xcode/allowing-apps-and-websites-to-link-to-your-content#topics
I check the links in your question, CFBundleURLSchemes
is suitable for macOS as well. It's similar to iOS, see: https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007899 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.