A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello,
Firstly, please right-click the Package.appxmanifest file, open with HTML Editor. I add following name-prefix to do it.
<Applications>
<Application Id="App" ...>
...
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="demy-ia">
<uap:DisplayName>demy-ia</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
</Application>
</Applications>
We can get url by appActivationArguments.Uri, before get the url, we need use Microsoft.Windows.AppLifecycle.AppInstance.GetCurrent().GetActivatedEventArgs(); to get appActivationArguments.
Please change the events like following code.
.ConfigureLifecycleEvents(events =>
{
#if WINDOWS
events.AddWindows(windows => windows
.OnLaunched((window, args) => {
var activatedEventArgs = Microsoft.Windows.AppLifecycle.AppInstance.GetCurrent().GetActivatedEventArgs();
Windows.ApplicationModel.Activation.ProtocolActivatedEventArgs appActivationArguments =activatedEventArgs.Data as Windows.ApplicationModel.Activation.ProtocolActivatedEventArgs;
if (appActivationArguments != null)
{
var uri = appActivationArguments.Uri;
}
}));
#endif
})
Here is my tested url demy-ia://Addyourtestmeeting, if you put this URL in the browser and access it, you will get a popup window to open your application.
By the way, if you want to use https://demy-ia.daily.co/dedwdewdewdew to do the deep linking. Please Handle the Redirect from Web URL to Custom URI Scheme:
On the web server, configure a redirect from https://demy-ia.daily.co/dedwdewdewdew to demy-ia://Addyourtestmeeting.
Best Regards, Leon Lu
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.