Cannot open Microsoft stores review dialog from Spp

Basudeb Gupta 6 Reputation points
2022-09-01T16:25:48.55+00:00

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.
0x803F6107.

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

https://learn.microsoft.com/en-us/windows/uwp/monetize/request-ratings-and-reviews

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
    2022-09-02T02:04:26.127+00:00

    Hello,

    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.