Search code examples
windows-8winjsrate

Implementing "Rate application" functionality on a Windows Store app


I am trying to implement rating functionality in a Windows Store application using HTML / Javascript.

I am showing a popup dialog similar to the one below within the application and when "Rate" is clicked I would like to redirect to the Marketplace where the user can then rate the application.

enter image description here

This is a task that can easily be done on Windows Phone 7 via the MarketplaceReviewTask.

Is there an API on Windows 8 that I could call to have this achieved?


Solution

  • The Rate and Review link in the Settings charm will automatically appear for users other than yourself (since you can't rate your own app).

    If you want a custom link somewhere, you can use LaunchUriAsync like Jim says, using this URI:

    "ms-windows-store:REVIEW?PFN=[my-pfm]"
    

    where my-pfm is "Package Family Name" which you will find in your application manifest.