[XBOX] [UWP]我们可以从我们的应用程序链接到商店中的游戏吗?

问题描述:

您好 - 我们想从我们的应用链接到Xbox商店中的游戏吗?我们将获得与某些游戏相关的相关内容,并且作为便捷服务,我们希望能够将我们的用户指向我们正在讨论的游戏方向,因此他们可以点击深层链接并登陆Xbox在相关游戏中存储在Xbox上。

Hi - we would like to link to games in the Xbox store from our app? We will have relevant content related to certain games and as a convenient service we would like to be able to point our users in the direction of the game we are talking about, so they can click the deeplink and land in the Xbox store on Xbox, in the relevant game.

这是否允许和2.)可能吗?

Is this 1.) allowed and 2.) possible?

提前致谢。





>>这是1.)允许和2.)可能吗?



是的,你可以启动微软在您的应用中存储应用使用
Windows.System.Launcher。 LaunchUriAsync()方法


您可以直接启动商店游戏页面,如下所示:

Hi,

>>Is this 1.) allowed and 2.) possible?

Yes, you could launch the Microsoft Store app in your app use Windows.System.Launcher.LaunchUriAsync() method.
You could directly launch the Store Games page like this:

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://navigatetopage/?Id=Games"));



但是如果您需要导航到产品详细信息页面(PDP) ),您需要知道目标应用程序的商店ID或包裹系列名称。

例如,在PC上启动OneNote页面:


But if you need to navigate to the product details page (PDP), you will need to know the Store ID or the Package Family Name of the target app.
For example, launch the OneNote page on PC:

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://pdp/?ProductId=9WZDNCRFHVJL"));

这不适合xbox,因为Onebox在xbox上不可用,如果商店中没有应用程序,当你尝试启动商店时它会显示错误。你可能会改变将ProductId发送给您并使用您自己的应用程序进行测试。



欲了解更多信息,请参阅此链接:启动Microsoft Store应用程序

This is not suitable for xbox as OneNote is not available on xbox, if the app is not available in the store, it will show error when you try to launch the store.You could change the ProductId to yours and make a test using your own app.

For more information, please refer this link:Launch the Microsoft Store app



Best re gards,

Roy


Best regards,
Roy