{"id":1038,"date":"2019-01-14T20:33:49","date_gmt":"2019-01-14T20:33:49","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=1038"},"modified":"2019-01-14T20:39:35","modified_gmt":"2019-01-14T20:39:35","slug":"app-promotion-trick-for-windows-store-app","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/app-promotion-trick-for-windows-store-app\/","title":{"rendered":"App Promotion Trick for Windows Store App"},"content":{"rendered":"<p>If you are a publisher who has published multiple UWP apps in the windows store and want to add a catalog of all your other apps in your UWP app, then there is no need to write\u00a0a lot of code to achieve this capability. Microsoft has provided URI scheme to launch the Microsoft Store app to specific pages in the store. We can use search capability to find products from a specific publisher and simply\u00a0launch that URI using LaunchUriAsync API method.<\/p>\n<p>For ex. in order to launch all products published by\u00a0some &#8220;XYZ Corporation&#8221; in the windows store we can simply call the following URI<\/p>\n<blockquote><p>ms-windows-store:\/\/publisher\/?name=XYZ Corporation<\/p><\/blockquote>\n<p>Following code example demonstrates how this can be achieved using 3 lines of code in Javascript store app<\/p>\n<pre class=\"lang:default decode:true\">function showPublisherApps() {\r\n    var publisherDisplayName = \"Microsoft Corporation\"; \/\/ Change this to your publisher name\r\n    var uri = new Windows.Foundation.Uri(\"ms-windows-store:\/\/publisher\/?name=\" + publisherDisplayName);\r\n    var options = new Windows.System.LauncherOptions();\r\n    Windows.System.Launcher.launchUriAsync(uri, options);\r\n}<\/pre>\n<p>Simply call this method on on some action such as a button click and it will launch a new popup window containing all apps from the specified publisher.<\/p>\n<p>Link: <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/launch-resume\/launch-store-app\" target=\"_blank\">MS Windows Store &#8211; URI Scheme Reference<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a publisher who has published multiple UWP apps in the windows store and want to add a catalog of all your other apps in your UWP app, then there is no need to write\u00a0a lot of code to achieve this capability. Microsoft has provided URI scheme to launch the Microsoft Store app to specific pages in the store. We can use search capability to find products from a specific publisher and simply\u00a0launch that URI using LaunchUriAsync API method. For ex. in order to launch all products published by\u00a0some &#8220;XYZ Corporation&#8221; in the windows store we can simply call the following URI ms-windows-store:\/\/publisher\/?name=XYZ Corporation Following code example demonstrates how this can be achieved using 3 lines of code in Javascript store app function showPublisherApps() { var publisherDisplayName = &#8220;Microsoft Corporation&#8221;; \/\/ Change this to your publisher name var uri = new Windows.Foundation.Uri(&#8220;ms-windows-store:\/\/publisher\/?name=&#8221; + publisherDisplayName); var options = new[&#8230;]<\/p>\n","protected":false},"author":5,"featured_media":746,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,3,24,21],"tags":[],"class_list":["post-1038","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-html5","category-javascript","category-windows-store-app"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1038","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=1038"}],"version-history":[{"count":3,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions\/1042"}],"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=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}