Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
tomeu_puig's avatar
tomeu_puig
Honored Guest
2 years ago

GetViewerPurchases() suddenly stopped working.

Hi,

We are currently working on integrating in-app purchases (IAPs), and to verify user purchases (using test users), we are utilizing the Unity function "GetViewerPurchases()" to retrieve a list of purchased items. We previously had a build where everything functioned correctly with this method. However, suddenly, the function began returning 0 purchased items even though the user had indeed made purchases. It suddenly stopped working properly when no code modifications were made.

Interestingly, when we test this function in the Unity Editor, it behaves as expected and retrieves the purchases. However, this functionality does not work as expected when testing on the headset.

We are wondering what could be causing it. Has anyone else experienced a similar problem?

2 Replies

Replies have been turned off for this discussion
  • Im seeing this exact same issue. Did you ever find the solution?

  • clrke's avatar
    clrke
    Honored Guest

    7 months after, I'm still getting the same error.