Windows Phone 8.1 Ratings & Review - What’s changed for #WPDev?


You might be already searching for it and landed to this post. If you started working on Windows Phone application/game development, you might want to add an option to rate your app/game in the store. The API has been changed a bit in WP8.1.

 

In this post we are going to discuss “How to launch the Rating & Review screen in Windows Phone 8.1” with a comparison between the API changes.

 

 

You might already know that, many APIs have been changed in Windows Phone 8.1 if you compare them with it’s previous version (i.e. WP8). I have already blogged few of them. You can read them here:

 

How to launch the Rate and Review Task in Windows Phone 8.0?

Earlier to Windows Phone 8.1, it was very easy to launch the Marketplace Review Task. It is still the same code if you are building Windows Phone 8.1 Silverlight based application. You just have to call the Show() method on top of the instance of MarketplaceReviewTask, as shown below:

 

new MarketplaceReviewTask().Show();

 

How to launch the Rate and Review app screen in Windows Phone 8.1?

But the API has changed a bit, if you are developing Windows Phone 8.1 (RT, more precisely “Universal”) app or game. Now, you will not find the MarketplaceReviewTask class in the new SDK. Launcher.LaunchUriAsync(uri) is the new method which you have to call to invoke the same and have to provide the correct uri parameter to it in the same format mentioned below:

 

Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + APP_ID));

 

 

Remember that:

You have to pass the application ID of your app/game as a query string parameter “appid” while calling the reviewapp. If you don’t pass the appid, it will behave differently and like me, you might spent a lot of time.

 

You will find the appid in Dev Center and also in store app URL. The URL will look similar to this:

http://www.windowsphone.com/s?appid=f99556f3-d620-4805-8cb7-64e86635d0c8 (don’t forget to try out this app “Password Locker”, if you have multiple accounts and if you forget the account credentials over the time. If you are concerned about data security, it’s secure enough and stores all the records in your phone device only after encrypting them.

 

I hope, this small post will help you add the ratings & review functionality in your app. Don’t forget to check my other posts available in this blog. Connect with me on Twitter, Facebook and Google+ to get all my technical/non-technical updates.


 


If you have come this far, it means that you liked what you are reading. Why not reach little more and connect with me directly on Twitter , Facebook , Google+ and LinkedIn . I would love to hear your thoughts and opinions on my articles directly. Also, don't forget to share your views and/or feedback in the comment section below.

12 comments

  1. Hey Kunal

    I've tried it for my windows phone 8.1 HTML5 app but it isn't working.
    Can you help me out how to add rate and review button in windows phone HTML5 app.

    Thanks i advance.

    ReplyDelete
  2. Thanks for this informative and good article.
    Is it possible to develop an app on windows phone 8.1 without installing it? Actually I am still working on windows phone 7 and worry about its compatibility with emulators in windows phone 8.1.

    ReplyDelete
  3. Instead of finding app ID and put it in code we can directly use following command for app ID.

    await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + Windows.ApplicationModel.Package.Current.Id.Name));

    ReplyDelete
    Replies
    1. Excellent Tips. Thank you Nitin for sharing the same with the community.

      Delete
    2. Thanks for the information you share

      Uppss, with ...Current.Id.Name it doesn't work, at least for me.

      With the AppId we took from the url it worked smooth.

      Delete
    3. Hi Martin,

      Windows.ApplicationModel.Package.Current.Id.Name only work if installed from Windows Phone Store. If you are running it in dev environment, it will NOT work by default.

      Hope this helps.

      Regards,
      Kunal Chowdhury

      Delete
  4. Thank you very much for this nice post. It really helped me a lot.

    ReplyDelete
  5. The article was very useful thank you :) I have a doubt.
    I'm developing WP8.1 and going to deploy it next week and planning to implement your idea for rating. I want to know when I will get appId?

    ReplyDelete
  6. Thanks @KC its vary nice discussion i like it,,
    but can u tell me how to catch that user has already rated my app or not, if no then i wanna open rating function otherwise not..so pls clear me how to catch that..?????

    ReplyDelete
    Replies
    1. Hi Rahul,

      This is not possible as of now due to restriction in Microsoft SDK.

      Delete
  7. How can we get to know whether user has successfully reviewed our app.

    ReplyDelete
    Replies
    1. This is not possible as of now due to restriction in Microsoft SDK.

      Delete


 
© 2008-2016 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top