Deep Linking Widows
help in deep linking
I created a URI Schema
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="daily-co">
<uap:DisplayName>demyia</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
where daily-co is part of the uri, becoue I am using dialy api, for example https://demy-ia.daily.co/programming
I made this in the maiuProgram
#if WINDOWS
events.AddWindows(windows => windows
.OnLaunched((window, args) => {
var activatedEventArgs = Microsoft.Windows.AppLifecycle.AppInstance.GetCurrent().GetActivatedEventArgs();
}));
#endif
but I don't see anything my uri or anything
where is my URI
I searched here
https://stackoverflow.com/questions/72606737/how-to-open-winui-maui-through-uri-activation/73217714#73217714
Stack Overflow
How to open WinUI Maui through URI Activation?
I've created a Maui windows application. I'm looking to activate the application through a URI and pass query parameters to the app.
I've added the windows protocol for calling the app via uri in the
6 Replies
Did you test to see if
activatedEventArgs.Data
is IProtocolActivatedEventArgs
? (Or check Non-Public members)
Have you tried hooking up to Activated from ModuleInitializer
?
From https://github.com/dotnet/maui/discussions/6493#discussioncomment-5219414 since it seems something people are hittingGitHub
Windows platform protocol activation · dotnet maui · Discussion #64...
I'm a bit confused as to how we're supposed to use protocols in Windows applications. Let's say I have a protocol registered as 'myapp' and call 'myapp://?someparam=somevalu...
well data is am object, and is not letting me cast it
is that failing?
I dont get anyting
but the strange part is that when I go to cmd and type start demy-ia.daily.co://pSrMtpMvYPunT78inEvj it will open my app