简体   繁体   English

Windows Phone - 指向应用商店中发布者的链接

[英]Windows Phone - link to the publisher in the app store

I have created several windows phone apps and I would like to link to my publisher's page to show all of the apps that I publish. 我创建了几个Windows手机应用程序,我想链接到我的发布者页面,以显示我发布的所有应用程序。 Note that I am developing my app for Windows Phone 7.x and up using C# and XAML. 请注意,我正在使用C#和XAML开发适用于Windows Phone 7.x的应用程序。

UPDATE UPDATE

What I would like to do is show the following publisher page: From within Windows Phone, navigate to the Windows Phone store, then select any app, then select the "more from <Publisher>" link. 我想要做的是显示以下发布者页面:在Windows Phone中,导航到Windows Phone存储,然后选择任何应用程序,然后选择“更多来自<Publisher>”链接。 This displays a nice mobile view of all of that publisher's apps. 这会显示所有发布商应用的移动视图。 But I can't figure out how to bring up that publisher page directly from within my app. 但我无法弄清楚如何直接从我的应用程序中调出该发布者页面。 Any help would be appreciated! 任何帮助,将不胜感激!

Option 1) Link directly to the URL for my publishers page (using a WebBrowserTask) 选项1)直接链接到我的发布者页面的URL(使用WebBrowserTask)

Issue) All links to the store seem to require the en-US language embedded in the URL. 问题)商店的所有链接似乎都需要在URL中嵌入en-US语言。 I'm concerned about what will happen to users in other countries/languages. 我担心其他国家/地区的用户会发生什么。

Example: http:/www.windowsphone.com/ en-US /store/publishers?publisherId=Microsoft%2BCorporation 示例:http:/www.windowsphone.com/ zh-CN / store / publishers?publisherId = Microsoft%2BCorporation

Is there a language independent way to link to a publisher in the store? 是否有与语言无关的方式链接到商店中的发布者?

Option 2) Use the MarketplaceDetailTask to link to the publisher 选项2)使用MarketplaceDetailTask​​链接到发布者

Issue) From what I've seen, this can only be used to link to an app. 问题)从我所看到的,这只能用于链接到应用程序。 I tried using my publisher GUID and got: Marketplace Error - We're sorry, but we can't complete your request right now. 我尝试使用我的发布者GUID并得到:市场错误 - 很抱歉,我们现在无法完成您的请求。

MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.ContentIdentifier = <My Publisher GUID>;
marketplaceDetailTask.Show();

Option 3) Use the MarketplaceSearchTask to link to the publisher 选项3)使用MarketplaceSearchTask链接到发布者

Issue) This allows searching the store with any string. 问题)这允许用任何字符串搜索商店。 The problem is, when I put my publisher name in the search string, other apps are shown in addition to mine. 问题是,当我将我的出版商名称放在搜索字符串中时,除了我的以外还会显示其他应用程序。 My publisher name includes a common word and any app with that word shows up. 我的发布商名称包含一个常用字词,任何显示该字词的应用都会显示。

MarketplaceSearchTask searchTask = new MarketplaceSearchTask();
searchTask.ContentType = MarketplaceContentType.Applications;
searchTask.SearchTerms = "<My Publisher Name>";
searchTask.Show();

Any thoughts or suggestions would be appreciated! 任何想法或建议将不胜感激! Thanks. 谢谢。

As you're targeting WP7+, unfortunately using the zune:search URI only works on WP8 as it relies on URI Schemes, which was not backported to WP7. 由于你的目标是WP7 +,不幸的是使用zune:search URI只适用于WP8,因为它依赖于URI Schemes,而URI Schemes并没有向后移植到WP7。 Based on these two posts , I tried the following on your behalf: 根据这两篇 文章 ,我代表您尝试了以下内容:

zune://search/?publisher=Henry%20Chong;

And a bunch of other things, but it seems that only zune://navigate is available on Windows Phone 7 and that only allows you to load a specific app. 还有很多其他的东西,但似乎只有zune:// navigate在Windows Phone 7上可用,并且只允许你加载特定的应用程序。 (Perhaps someone who feels like opening reflector or on the Phone teams could comment here...) (也许有人想要打开反射器或电话团队可以在这里发表评论...)

Two other things I've come across that you can look into: 我可以看到另外两件事你可以看到:

1) There used to be an undocumented Zune api that you could query the marketplace against; 1)曾经有一个无证的Zune api,你可以查询市场; it looks like this has been replaced by the Marketplace Edge Service, which you could try and dig around for: 看起来这已被市场边缘服务取代,您可以尝试挖掘它:

http://social.msdn.microsoft.com/forums/windowsapps/en-US/f5294fcb-f4b3-4b19-9bda-f49c6a38b327/marketplace-edge-service-query http://social.msdn.microsoft.com/forums/windowsapps/en-US/f5294fcb-f4b3-4b19-9bda-f49c6a38b327/marketplace-edge-service-query

2) You could add a specific unique keyword to all your apps and use the MarketplaceSearchTask, as suggested here by Matt . 2)您可以为所有应用添加特定的唯一关键字,并使用MarketplaceSearchTask,如Matt所建议的那样。

Personally, I'd go with #2 because: 就个人而言,我会选择#2,因为:

  • you never know when the Marketplace Edge Service will change 您永远不知道市场边缘服务何时会发生变化
  • 1 is not technically supported by Microsoft Microsoft在技术上不支持1

  • you won't have to replicate the page you're trying to display 您不必复制您尝试显示的页面

Of course, there's also nothing stopping you from creating your own "Apps by X" page for your app and maintain it yourself manually. 当然,也没有什么可以阻止您为自己的应用创建自己的“Apps by X”页面并自己手动维护。

Best of luck! 祝你好运!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM