Reputation: 597
I'm trying to test new API from Windows 10 anniversary update and have a problem with AppUriHandler. I just do everything ok, it works if I input URI via WIN+R cmd but if it's link in a browser - it doesn't work. Does some additional rules exist for open app via browser link ? I know about JSON, I have tried to create my own website, added JSON but doesnt work. But honestly I want to create app for external website and if user installed my app he will able to open this website in my app. Or Microsoft care about website owner's traffic and I can't to do that?
Upvotes: 2
Views: 929
Reputation: 15758
As @pnp0a03 said, this behavior is by design. See the Note in Support web-to-app linking with app URI handlers:
Note: If you click a link in the Microsoft Edge browser, it will not launch your app but will take you to your website.
When we click the link in the Microsoft Edge browser, Windows suppose we want to use browser to open this link. But in other places, if we open the link, it will open the app instead of opening the browser. For example, using a HyperlinkButton
:
<HyperlinkButton NavigateUri="https://msdn.microsoft.com/">msdn.microsoft.com</HyperlinkButton>
If you have deployed Association launching sample, clicking the HyperlinkButton
will open this app for you.
Upvotes: 2