How to generate a link directing to all apps of a publisher in microsoft store?

不羁岁月 提交于 2019-12-11 01:18:14

问题


I'm a uwp developer, and I have published 4 apps in Microsoft store.

Now I want to add a button, which can open the store page published by me.

Like below.

How? Thanks :)


回答1:


There is another schema available for WinStore for filtering by publisher

Here is example "ms-windows-store://publisher/?name=Printslon"

Launches a search for products from the specified publisher. Spaces in the name are allowed.

https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-store-app




回答2:


First of all you need to set unique tag in app store for your app which shows result for your app only or through your username as i mention in above comment

private async void YourButton_Click(object sender, RoutedEventArgs e)
{
    await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://search/?query=shubdragon"));
}

alternately you can also search for multiple tags (Not Recommended) -

"ms-windows-store://assoc/?Tags=Photos_Editor, Camera_App, FM_Radio_Tune, DevShare" 

Insert your user name in query="YourUSerNameInTheStore" and it is case sensitive else it will give wrong result or something else. Don't Forget the make scope async.

Suggestion you can use very weird tag like 2246jklm in all your apps then set it is as query=2246jklm so it will never show other apps result



来源:https://stackoverflow.com/questions/46270655/how-to-generate-a-link-directing-to-all-apps-of-a-publisher-in-microsoft-store

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!