UWP XBOX Live Creators app and Store app URI scheme
Hi,
I have an UWP Xbox Live Creators app in which I try to use the Store app URI schemes as explained here:
https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-store-app
I implement the store detailed page as follows:
ms-windows-store://pdp/?ProductId=MyProductId
ms-windows-store://review/?ProductId=MyProductId
ms-windows-store://publisher/?name=MyPublisherName
However all of the links just open the Microsoft Store home page.
If I load "https://www.microsoft.com/store/apps/MyProductId" in a web view control which is part of my UWP XBOX app and click the "Get" button, it redirects me to the store and opens the product details page, so I assume there is a way to do it directly from the app.
Is there something else I have to do in order to make those links work for UWP XBOX app or anything else I can do to simulate the same behaviors for links in my app?
PS: This behavior is only with UWP XBOX app version. When I run the same app for Desktop under windows 10, all of the links work as expected and open the product details page, the rating page and my publisher page with all apps.
Thanks in advance.
Universal Windows Platform (UWP)
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-01-31T02:51:53.9333333+00:00 Did you use any
LauncherUIOptions
as parameter in your code? BecauseLauncherOptions
are not supported API on Xbox. -
TS 15 Reputation points
2023-01-31T10:42:36.5266667+00:00 Hi, Roy,
I don't use any additional options, I tried to simplify it as far as I can but still no success.
This is my implementation:
await Launcher.LaunchUriAsync(new Uri("ms-windows-store://pdp/?ProductId=MyProductId"));
MyProductId is equal to the one I get from my dev publisher account for the app.
First I thought it could be related to the Xbox Dev Mode, because Microsoft Store does not show any applications when I use my console in that mode. But when I released the app and tried it under "Release" mode of my console, the issue still persists.
I found out that another developer experienced the same issue with that difference he was using Unity to create the app. My app is UWP C#, created and published with Visual Studio.
https://stackoverflow.com/questions/73423580/unity-link-to-xbox-store-show-all-apps-from-a-publisher
-
TS 15 Reputation points
2023-02-01T01:25:02.8033333+00:00 Duplicated comment!
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-02T06:24:02.9133333+00:00 I've talked to some Xbox guys. Xbox engineers told me that when the Xbox is in dev mode, it does not have access to the public store apps. This might be the reason. Has your app been published in the Store already? If it is, please switch your Xbox back to retail mode and try again and check the behavior.
-
TS 15 Reputation points
2023-02-02T14:48:15.4933333+00:00 First Xbox "Dev Mode" was my guess too.
But when I published the game and tried to download it from the store in a "Release" mode for my console, the situation was no different.
All the links just open the Store home page and they are implemented in that way:
await Launcher.LaunchUriAsync(new Uri("ms-windows-store://pdp/?ProductId=MyProductId"));await Launcher.LaunchUriAsync(new Uri("ms-windows-store://review/?ProductId=MyProductId"));
await Launcher.LaunchUriAsync(new Uri("ms-windows-store://publisher/?name=MyPublisherName"));
And I'm confused because when I try to download the same game from my computer with Windows 10, all the links works correctly and open respectively the product details page, product review page, and publisher's page.
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-03T06:14:54.8733333+00:00 I'll talk to the Xbox guys about this again. But there is still one thing I need to say, the UWP tag only handles questions about UWP issue on desktop. Questions on Xbox is out of scope.
-
TS 15 Reputation points
2023-02-03T10:43:01.9833333+00:00 Thank you, Roy, I appreciate your efforts.
If this is not the place for UWP Xbox question, where should I ask it? -
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-06T02:59:02.02+00:00 Xbox engineers has tested this behavior on their side, but it appears the function works correctly Xbox. So we have something that we want to confirm.
- Is the app in the package flight or published in private audience?
- Is it possible to find the app manually by search in the Store app on Xbox?
- What will happen when you type the URL directly in Edge browser on Xbox?
Please let me know more information about this.
-
TS 15 Reputation points
2023-02-06T10:10:43.0033333+00:00 Hi Roy,
- The app is not a package flight or private. It is available in the Store for public.
- If I search by name in the Store, it shows up and I can install it.
- I tested all links from Xbox Edge browser and only (ms-windows-store://pdp/?ProductId=MyProductId") works as expected. The other two (ms-windows-store://review/?ProductId=MyProductId, ms-windows-store://publisher/?name=MyPublisherName) open Store home page.
I can provide a link to the app by email.
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-07T03:12:52.8533333+00:00 Could you please share the produceID of your app so our Xbox engineers could make a test about this?
-
TS 15 Reputation points
2023-02-07T12:06:14.8633333+00:00 Sure, the id is "---".
But right now they can only test the rate functionality (it is either available with content dialog or under the app bar menu- star icon) as I removed the other two with the last submission. They can check it is working fine on Windows but there is an issue on Xbox.
-
TS 15 Reputation points
2023-02-07T16:32:45.95+00:00 Hey Roy,
It turns out that the product details page is working fine on Xbox, I was checking wrong link ("ms-windows-store://downloadsandupdates"), which should actually open the Store Library but it just opens the Store Home for Xbox.
I guess I'm fine with the product details page because my intention to use the it is to give the users an opportunity to update the app when there is a new version.
However I still have issues with the other two links:
await Launcher.LaunchUriAsync(new Uri("ms-windows-store://review/?ProductId=MyProductId"));
await Launcher.LaunchUriAsync(new Uri("ms-windows-store://publisher/?name=MyPublisherName"));
They both open the Store Home page for Xbox but are working as expected for Desktop.
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-09T01:35:40.4833333+00:00 Xbox engineers could reproduce this behavior. They are confirming if this is an issue or not.
-
TS 15 Reputation points
2023-02-20T20:06:40.12+00:00 Hi Roy,
Is there any update from the Xbox engineers?
-
TS 15 Reputation points
2023-02-20T20:07:29.54+00:00 Hi Roy,
Is there any update from the Xbox engineers?
-
Roy Li - MSFT 31,826 Reputation points • Microsoft Vendor
2023-02-24T06:48:23.7866667+00:00 I'm sorry to say that I didn't get any updates about this since then. I'm asking if there are updates about this.
Sign in to comment