none
[XBOX] [UWP] Can we link to games in the store from our app?

    Question

  • 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.

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

    Thanks in advance.

    Wednesday, December 5, 2018 11:41 AM

All replies

  • 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"));


    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"));

    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 regards,
    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 6, 2018 2:43 AM
    Moderator
  • Excellent - thanks a lot Roy. We will try it out.


    Do we need to add the Microsoft Advertising SDK to the VS package to make this work?

    Thursday, December 6, 2018 9:42 AM
  • Hi,

    No, this API doesn't require for AD sdk.

    Best regards,

    Roy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, December 7, 2018 1:50 AM
    Moderator