C
C#11mo ago
eduardoA

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
No description
6 Replies
lycian
lycian11mo ago
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 hitting
GitHub
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...
eduardoA
eduardoAOP11mo ago
well data is am object, and is not letting me cast it
lycian
lycian11mo ago
c#
if (args.Data is IProtocolActivatedEventArgs protoclArgs)
{
// ...
}
c#
if (args.Data is IProtocolActivatedEventArgs protoclArgs)
{
// ...
}
is that failing?
eduardoA
eduardoAOP11mo ago
I dont get anyting
eduardoA
eduardoAOP11mo ago
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="demy-ia.daily.co">
<uap:Logo>images\icon.png</uap:Logo>
<uap:DisplayName>Your App Name</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="demy-ia.daily.co">
<uap:Logo>images\icon.png</uap:Logo>
<uap:DisplayName>Your App Name</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
No description
eduardoA
eduardoAOP11mo ago
but the strange part is that when I go to cmd and type start demy-ia.daily.co://pSrMtpMvYPunT78inEvj it will open my app
Want results from more Discord servers?
Add your server