How to review the App in Windows Phone using C#?

There might be scenarios where the developers might want to provide an option for the users to review the current application. There is a launcher that might help the developers in this scenario.

How to review the App in Windows Phone Programmatically?

The MarketplaceReviewTask lets the developers to allow the user to launch the Windows Phone Marketplace and display the review page of the Windows Phone app.

Just create an instance of the MarketplaceReviewTask and call the show method of the instance. This will launch the review page of the application in the Windows Phone Marketplace where the user can review the app.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PhoneApp3.Resources;
using Microsoft.Phone.Tasks;

namespace PhoneApp3
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            ReviewApp();
        }

        private void ReviewApp()
        {
            MarketplaceReviewTask reviewTask = new MarketplaceReviewTask();
            reviewTask.Show();
        }
    }
}

Note that when you try to use the MarketplaceReviewTask without the Microsoft Account configured on your Windows Phone / Emulator, you might receive the below error message

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...