jonathanpeppers
jonathanpeppers

Reputation: 26505

Windows 8 C# Store app - Link to store and reviews

We are about to submit a game for Windows 8 with two versions:

So on the ad-supported version, we need a button to link to the store for the full version.

In both versions, we also would like to place a button to link to the store to review each app.

How are these two scenarios handled in Windows 8?

Upvotes: 15

Views: 6531

Answers (5)

GurhanCagin
GurhanCagin

Reputation: 185

You can directly use below code in click event:

MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();

marketplaceReviewTask.Show();

You will need to add

using Microsoft.Phone.Tasks;

also.

Upvotes: 0

Sumit
Sumit

Reputation: 36

Use this:-

private async void Rate_Click(object sender, RoutedEventArgs e)
    {
        String pfn = Package.Current.Id.FamilyName;
        await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=" + pfn + ""));
    }

You can find detailed solution here.

Upvotes: -1

StarlitSkies
StarlitSkies

Reputation: 1144

Thanks to the lovely folks who created Physamajig not only working this out, but also sharing the information on their blog! Here's how you can link directly to your Review page:

Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=MY_PACKAGE_FAMILY_NAME"));

Replacing MY_PACKAGE_FAMILY_NAME with the one from your package manifest.

See full details: http://andybeaulieu.com/Home/tabid/67/EntryID/227/Default.aspx

Upvotes: 24

Chris Newman
Chris Newman

Reputation: 2240

We asked about linking directly to the review page at an AEL today. The link to Rate and Review in the settings charm is added automatically once your app is in the store. No coding required.

Upvotes: 3

ZombieSheep
ZombieSheep

Reputation: 29963

var storeURI = new Uri("ms-windows-store:PDP?PFN=<Your package family name from the manifest>");
await Windows.System.Launcher.LaunchUriAsync(storeURI);

should do the trick.

Upvotes: 6

Related Questions