Glebs Medvedevs
Glebs Medvedevs

Reputation: 11

Blank pop up appears when buying subscription products from Microsoft store. UWP, MS Subscriptions, Unity

I am currently experiencing a problem with Microsoft store API (Windows.Services.Store) in Unity UWP build of the game. I have my own API built on top of Windows.Services.Store

Situation is as following:

  1. Pop-up appears.
  2. I press "buy now."
  3. It is showing a loading screen.
  4. The pop-up becomes a blank sheet with a outlined space for some information (but without actual information).

At step 4 the only thing I can do with this pop-up is to close it by pressing on X in the top-right corner which results into the status of purchase NotPurchased.

I have figured out that the problem is in the Windows.Service.Store API. The execution is stuck in the process of awaiting RequestPurchaseAsync function. awaited function where the execution is stuck

Buying a subscription. Image

Blank pop-up. Image

I have tried updating API, changing version of XAML, looking for similar problems in other projects on the web.

UPD: I have found a following error Event Viewer:

ReactControlViewer.OnWebViewScriptNotify. Message is null or unsupported. Returning early. Original value: {"message":"status","version":"20240512.1_k8s","data":"https://www.microsoft.com/store/purchaseui/purchase-ui/static/js/client.47b6aac7.js script loaded"} Error: The operation completed successfully. Function: OnWebViewScriptNotify Source: .\src\Purchase\Store.Purchase\Controls\ReactControlViewer.cs (349)

Upvotes: 1

Views: 97

Answers (0)

Related Questions