Cannot open Microsoft stores review dialog from Spp

Basudeb Gupta 6 Reputation points

I am following this link to open the Stores review dialog from my app. The app is already in stores But I always get error.

Attaching the screenshot. 237057-b59b2264-20a4-4315-afc3-d8477910ebf7.jpeg

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,486 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    I noticed that you are using the code

    _storeContext = StoreContext.GetForUser(firstUser);  

    This is the code for multi user apps. As @Viorel said, if you are just a normal UWP application which is single user, you could just try the following instead

      _storeContext = StoreContext.GetDefault();  

    Then you could call the following code:

    StoreRateAndReviewResult result = await  _storeContext.RequestRateAndReviewAppAsync();  

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.