Skip to main content
Question

Purchases.shared undefined

  • April 10, 2025
  • 1 reply
  • 8 views

Forum|alt.badge.img+1
  • Active Member
  • 10 replies

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?

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 363 replies
  • 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!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings