Subscribe to our YouTube Channel for more Videos

Windows Phone 8.1 and Windows Runtime Apps How to #10 – Launch Rate and Review Page from App


If you want to allow the user to launch the Windows Phone Store and display the rate and review page for the current app , you can use the Windows.System.Launcher.LaunchUriAsync method by passing the right handle .

In the Windows Phone 8 and earlier version , the developers could use the MarketplaceReviewTask but with Windows Phone 8.1 (Windows Runtime App) , the developers can utilize the Launcher class which allows the developers to use the LaunchUriAsync and launch the built-in apps .

How to Launch the Rate and Review Page from Windows Phone 8.1 App ?

Below is a sample code snippet that uses the Windows.System.Launcher.LaunchUriAsync method to launch the Rate and Review Page from the Windows Phone App.

async private void Button_Click(object sender, RoutedEventArgs e)
{
  await Windows.System.Launcher.LaunchUriAsync(
        new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId));
}

image

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.