We all create applications and we want people to know that our application is quality application and it solves the problem that it was targeting, so there are two ways people can know about that one is either some blog post or word of mouth or your application rating in the store. So when a user comes to the store and have a look at your application so by ratings/feedback they will understand that the application they are about to download is a quality application.



But there are very few people who rates your application after they have downloaded it , not because they dont want to rate it but because they forget that there is a thing rating and it will help other users to find out about quality and usage of your application.



Problem:



To remind users to rate the application in case they have not already:



Solution:



So we will use ApplicationSettings  to check if the user has rated.







Steps:





First of all we will add an event to the body that is called as soon as the application is launched.













and then we will add a code to check if the user has rated already or not.So in the event handler we will add the following code.











private void applicationLoaded(object sender, RoutedEventArgs e)
{
 
    var settings = IsolatedStorageSettings.ApplicationSettings;
    int count;
    if (!settings.Contains("count"))
    {
        count = 0;
    }
    else
    {
        count = (int)IsolatedStorageSettings.ApplicationSettings["count"];
    }
 
    if (!settings.Contains("WasLaunched"))
    {
        IsolatedStorageSettings.ApplicationSettings["ratingDone"] = "false";
        settings.Add("WasLaunched", true);
        count++;
    }
    else
    {
        count++;
 
        if (IsolatedStorageSettings.ApplicationSettings["ratingDone"].ToString() == "false")
        {
            if (count % 3 == 0)
            {
                MessageBoxResult result = MessageBox.Show("Please rate and review the app to make it better?", "MessageBox Example", MessageBoxButton.OKCancel);
 
                if (result == MessageBoxResult.OK)
                {
                    IsolatedStorageSettings.ApplicationSettings["ratingDone"] = "true";
                    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
 
                    marketplaceReviewTask.Show();
 
                }
            }
        }
 
    }
 
IsolatedStorageSettings.ApplicationSettings["count"] = count;
}








So every time user open the app it keeps track of that and every third time will let user know to rate the application.











Windows Phone





That is all, you are done creating a reminder!

See Also

Another important place to find a huge amount of Windows Phone related articles is the TechNet Wiki itself. The best entry point is Windows Phone Resources on the TechNet Wiki.