UWP Apps for websites doesn't works when click link from a web page.

marck0zz 26 Reputation points
2022-05-15T01:24:02.287+00:00

Hi everyone,

I'm trying to enable "Apps for websites" in my UWP app that I making with Unity. I have follow this tutorial, (that is made for mac but I made the changes to run it on Windows and is based on Unity docs, so) and the propper Microsoft Learn to achieve this.

Every things woks good so far, except that when I click any link to my website on the browser, it opens a new tab on the browser instead of my app. If I click the link from any other app (like mail app, or pdf, any other document, even from a comment on visual studio) it opens my app, also from the Run dialog box. I can even see my app on the "Apps for Websites" in the setting of my PC.

I have follow all the recomendation on the Windows and Unity docs but the result is the same. However, I think one of my issues is the "windows-app-web-link" .json file on my server. What is the propper way to serve the file???. I've loaded it as "windows-app-web-link" and force the .json extension with an ".htaccess" file (My website is hosted on Siteground so, is linux based), and ""windows-app-web-link.json" although the docs says not to do it, I've located the file on the root of my server and on ".wellknown" folder but nothing change.

How can I test that this "windows-app-web-link" is working?
What am I missing? or what can I try?

I will apreciate any help.

Thanks in advance.

Using:
Unity 2020.3.3
Visual Studio 2019 ver 16.11.13
Windows 10 Ver 21H1

Universal Windows Platform (UWP)
{count} votes