JKoning
JKoning

Reputation: 285

Link to app in the Store with UWP

As I understand the following doesn't work anymore for UWP:

ms-windows-store:reviewapp?appid=[app ID]

Has anyone got the latest on how to do this?

Upvotes: 1

Views: 775

Answers (3)

user3922344
user3922344

Reputation:

You can refer to the MSDN in this link: https://msdn.microsoft.com/en-us/library/windows/apps/mt228343.aspx

Especially for UWP, I suggest to use "ms-windows-store://review/?ProductId=". The product id is much more useful than PFN.

Upvotes: 3

AbsoluteSith
AbsoluteSith

Reputation: 1967

You can use the below code to accomplish the task in UWP.

var uriRate = new Uri(@"ms-windows-store:REVIEW?PFN=" + Windows.ApplicationModel.Package.Current.Id.FamilyName);
await Windows.System.Launcher.LaunchUriAsync(uriRate);

Upvotes: 1

AlexDrenea
AlexDrenea

Reputation: 8039

There are a couple of good articles on this topic on the official documentation site: Link to your app and Launching the store app

In short, you can still use the store protocol, but you don't use appId you need to use productId which you can get from the developer dashboard.

ms-windows-store://review/?ProductId=[pid]

Upvotes: 0

Related Questions