Rate and Review WinRT app

In this month I migrated some WP app to Windows Store App.
I’ve done all and I notice that after the app is approuved on marketplace, in the SettingsPane will appear “Rate and Review”.

But how can I open Rate and Review by code?

First one you can open the settings Pane:

Windows.UI.ApplicationSettings.SettingsPane.Show();

and than the user will click “Rate and review”

The finally solution is use a ms-windows-store protocol:

// show your app page on marketplace
var uriAppDetail = new Uri(@"ms-windows-store:PDP?PFN=" + Windows.ApplicationModel.Package.Current.Id.FamilyName);
Windows.System.Launcher.LaunchUriAsync(uriAppDetail);

// show rate and review for your app
var uriRate = new Uri(@"ms-windows-store:REVIEW?PFN=" + Windows.ApplicationModel.Package.Current.Id.FamilyName);
Windows.System.Launcher.LaunchUriAsync(uriRate);

To work with other app use another PFN.
To obtain the PFN (Packaging Family Name), double click Package.appxmanifest and go to Packaging tab and take the value inside “Package family name:”

To show all the apps published by someone do this:

var uriMyApps = new Uri(@"ms-windows-store:PUBLISHER?name=Andrea%20Regoli");
Windows.System.Launcher.LaunchUriAsync(uriMyApps);

If you have Windows 8 copy and paste this line on your browser url
ms-windows-store:PUBLISHER?name=Andrea%20Regoli

this is a microsoft page that can help you
http://msdn.microsoft.com/en-us/library/windows/apps/hh974767.aspx

Annunci

Informazioni su Andrea Regoli

Project Manager .Net Developer WPF WP7 Asp.Net c# javascript ajax SQL sharepoint
Questa voce è stata pubblicata in Uncategorized. Contrassegna il permalink.

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...