Skip to main content

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?

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