-
Notifications
You must be signed in to change notification settings - Fork 619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep linking to specific pages does not work #1300
Comments
I think this is an issue with the protocol activation which just seems to be entirely broken. There is/was #979 but that didn't get far :/ |
Correct, we should be using the new APIs introduced for WinAppSDK: https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.windows.applifecycle.appinstance.getactivatedeventargs?view=windows-app-sdk-1.3#microsoft-windows-applifecycle-appinstance-getactivatedeventargs var eventargs = Microsoft.Windows.AppLifecycle.AppInstance.GetCurrent().GetActivatedEventArgs();
if (eventargs.Kind is ExtendedActivationKind.Protocol && eventargs.Data is ProtocolActivatedEventArgs)
{
ProtocolActivatedEventArgs ProtocolArgs = eventargs.Data as ProtocolActivatedEventArgs;
var uri = ProtocolArgs.Uri;
} |
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Simplifies protocol activation,, sorry for the new line changes. ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> Closes #1300, Closes #1164
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Simplifies protocol activation,, sorry for the new line changes. ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> Closes #1300, Closes #1164
Which version of the app?
WinUI 3 Gallery
Description
Deep linking doesn't work.
Steps to reproduce:
Run
prompt, copy-and-paste and hit enterRelated: #1164
Screenshots
No response
Windows version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: