What's the replacement for MarketplaceReviewTask in Windows Phone 8.1 Universal Apps

后端 未结 7 1496
逝去的感伤
逝去的感伤 2020-12-14 10:23

I\'ve looked everywhere and just can\'t find a way to launch the Rate and Review from my app. Does anyone know how to launch this task on the new Windows Phone 8.1?

7条回答
  •  自闭症患者
    2020-12-14 11:06

    There is no direct replacement of MarketplaceReviewTask. Now it works like this - by using LaunchUriAsync wit appropriate Uri - described at 'MSDN - Link to your app in the Store':

    to review the app you can use:

    await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=[app ID]"));
    // or simply for the current app:
    await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp"));
    

    At the link above (MSDN) you find also Uri structure to navigate to details page and search for specified content in the store.

    Note also that Windows Phone 8.1 has backward compatibility with WP 8.0, therefore all URI schemes for launching built-in apps work. So you can also use them like this:

    to review the App:

    await Windows.System.Launcher.LaunchUriAsync(new Uri(@"zune:reviewapp?appid=app" + YourAppID));
    

    to see details Page of the App:

    await Windows.System.Launcher.LaunchUriAsync(new Uri(@"zune:navigate?appid=[app ID]"));
    

提交回复
热议问题