Searching Windows Store from Universal app

Spyros P

New member
Jan 14, 2014
26
0
0
Visit site
Hi.

Linking to the Windows Store, either to display the review page for our app or to display all apps we have related, is a common practice.

The MarketPlaceTask was the way to accomplish this in Windows Phone 8 (don't know about Windows 8), but in 8.1 this has been removed and instead we have to launch Uris using the appropriate scheme. These don't seem to be compatible between Windows and Windows Phone though. What I have found out is that:

For Windows Phone:
Open our app's page in the Store app:
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + Windows.ApplicationModel.Store.CurrentApp.AppId));
Search for app by specific publisher and display results in the Store app:
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:search?publisher=Spyros Paraschis"));

For Windows:
Review app:
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=" + Windows.ApplicationModel.Package.Current.Id.FamilyName));

However, I couldn't find a way to search for apps by a specific publisher. I tried the following, but it didn't work; the Store app opened, but no search was conducted:
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:search?publisher=Microsoft"));

Does anybody know what is the correct syntax for performing a programmatic search in Windows Store?
 

Members online

No members online now.

Forum statistics

Threads
326,655
Messages
2,248,710
Members
428,531
Latest member
Clive