简体   繁体   English

Windows Phone 8.1 Store应用程序-链接到商店

[英]Windows Phone 8.1 Store app - Link to store

In Windows 8.1 Apps we can link to store apps using ms-windows-store protocol. 在Windows 8.1应用程序中,我们可以使用ms-windows-store协议链接到存储应用程序。

var storeURI = new Uri("ms-windows-store:PDP?PFN=<package family name>");
await Windows.System.Launcher.LaunchUriAsync(storeURI);

Is there any similar ways in Windows Phone 8.1? Windows Phone 8.1中有类似的方法吗? I prefer not to link to the webpage of the app on the store ( http://windowsphone.com/s?appId=appGUID ) which then opens the app in the store. 我不希望链接到商店中应用程序的网页( http://windowsphone.com/s?appId=appGUID ),然后在商店中打开该应用程序。 I want to directly open the app in the store. 我想直接在商店中打开该应用程序。

In Windows Phone 8.1, We can use ms-windows-store protocol to link to the store. 在Windows Phone 8.1中,我们可以使用ms-windows-store协议链接到商店。

To detail page: 进入详细页面:

var uri = new Uri(string.Format("ms-windows-store:navigate?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

To review page: 要查看页面:

var uri = new Uri(string.Format("ms-windows-store:reviewapp?appid={0}", appid));
await Windows.System.Launcher.LaunchUriAsync(uri);

To search page: 要搜索页面:

var uri = new Uri(string.Format(@"ms-windows-store:search?keyword={0}",keyword));
await Windows.System.Launcher.LaunchUriAsync(uri);

you can use the MarketplaceDetailTask and open the page from the app store for the app: 您可以使用MarketplaceDetailTask并在应用商店中打开该应用的页面:

var marketplaceDetailTask = new MarketplaceDetailTask(); 
marketplaceDetailTask.ContentIdentifier = "<GUID of the app>"; // optional
marketplaceDetailTask.Show();

You can optionally specify which app you want to open, default is the current app. 您可以选择指定要打开的应用程序,默认为当前应用程序。

More info: 更多信息:

http://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.tasks.marketplacedetailtask(v=vs.105).aspx http://msdn.microsoft.com/zh-CN/library/windows/apps/microsoft.phone.tasks.marketplacedetailtask(v=vs.105).aspx

 await Launcher.LaunchUriAsync(
          new Uri("ms-windows-store:reviewapp?appid=723e25d1-a0ee-4824-b389-XXXXXX"));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Phone 8.1 App在App Store上的发行 - Windows Phone 8.1 App on App Store Issue 是否可以将现有的Windows Phone 8应用程序更新为Windows Phone Store 8.1 - Is it possible to update an existing Windows Phone 8 app to Windows Phone Store 8.1 Windows Phone 8.1联系人存储 - Windows phone 8.1 contact store Windows应用商店-更改Windows Phone 8.1应用名称 - Windows Store - Change Windows Phone 8.1 App Name Mutli语言Windows Phone 8.1应用程序无法在Windows Store上运行 - Mutli Language Windows Phone 8.1 app not working on Windows Store Windows Phone - 指向应用商店中发布者的链接 - Windows Phone - link to the publisher in the app store Windows Phone 8、8.1 和 10 Store 支持,一个带有条码扫描器的应用程序 - Windows Phone 8, 8.1 and 10 Store support with one app with barcode scanner 从商店下载Windows Phone 8.1应用程序时崩溃 - Windows Phone 8.1 app crashes when downloaded from store 如何在Windows Phone 8.1通用商店应用中正确导航后退堆栈 - How to properly navigate backstack in Windows Phone 8.1 universal store app 像Windows Phone 8.1商店应用中的图块一样连续翻转图像 - Flip Image continuously like tile in windows phone 8.1 store app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM