{"id":1043,"date":"2019-01-21T15:05:59","date_gmt":"2019-01-21T15:05:59","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=1043"},"modified":"2019-01-21T15:05:59","modified_gmt":"2019-01-21T15:05:59","slug":"add-link-to-rating-feature-in-windows-uwp-app","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/add-link-to-rating-feature-in-windows-uwp-app\/","title":{"rendered":"Add Link to Rating Feature in Windows UWP App"},"content":{"rendered":"<p>In oder to add a link to rate your app following code can be used in javascript UWP app<\/p>\n<pre class=\"lang:default decode:true\">var storeID = 'xxxxxxxxxxxx';\r\nfunction rate() {\r\n    var uri = new Windows.Foundation.Uri(\"ms-windows-store:\/\/review\/?ProductId=\" + storeID);\r\n    var options = new Windows.System.LauncherOptions();\r\n    Windows.System.Launcher.launchUriAsync(uri, options);\r\n}<\/pre>\n<p>Replace storeID with your app&#8217;s Store ID and call &#8220;rate&#8221; method on a button click event which will open the app\u00a0in windows store with rate popup overlay.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In oder to add a link to rate your app following code can be used in javascript UWP app var storeID = &#8216;xxxxxxxxxxxx&#8217;; function rate() { var uri = new Windows.Foundation.Uri(&#8220;ms-windows-store:\/\/review\/?ProductId=&#8221; + storeID); var options = new Windows.System.LauncherOptions(); Windows.System.Launcher.launchUriAsync(uri, options); } Replace storeID with your app&#8217;s Store ID and call &#8220;rate&#8221; method on a button click event which will open the app\u00a0in windows store with rate popup overlay.<\/p>\n","protected":false},"author":5,"featured_media":746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,24,22,21],"tags":[],"class_list":["post-1043","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-javascript","category-quick-tip","category-windows-store-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=1043"}],"version-history":[{"count":3,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions"}],"predecessor-version":[{"id":1046,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions\/1046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/746"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=1043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}