Skip to main content
Question

Purchases.shared undefined

  • April 10, 2025
  • 1 reply
  • 44 views

Forum|alt.badge.img+1

Reading this section of the docs: https://www.revenuecat.com/docs/customers/identifying-customers#supporting-your-customers

Is says 

> You can retrieve the currently identified App User ID via the Purchases.shared.appUserID property.

 

Unfortunately that doesn’t work for me. `Purchases.shared` is `undefined` even after calling `Purchases.configure({ … })`. Are the docs outdated? Or am I doing something wrong?

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • April 14, 2025

Hi ​@tobbe,

I’ve checked the docs and that seems the way to retrieve it in Swift, we didn’t specify the language and SDK there - thanks for flagging it!

For React Native I believe you should be able to get the id using `Purchases.getAppUserID()`.

 

Let me know if it works!