Add Link to Rating Feature in Windows UWP App

In oder to add a link to rate your app following code can be used in javascript UWP app

var storeID = 'xxxxxxxxxxxx';
function rate() {
    var uri = new Windows.Foundation.Uri("ms-windows-store://review/?ProductId=" + storeID);
    var options = new Windows.System.LauncherOptions();
    Windows.System.Launcher.launchUriAsync(uri, options);
}

Replace storeID with your app’s Store ID and call “rate” method on a button click event which will open the app in windows store with rate popup overlay.


Leave A Comment

Your email address will not be published.