Skip to main content
Question

Cannot access Purchases.shared.getCustomerInfo in Swift

  • March 3, 2022
  • 1 reply
  • 129 views

Forum|alt.badge.img+2

I am attempting to determine the subscription status, am currently using Swift. The following works:

Purchases.shared.offerings {...

but the following does not exist:

Purchases.shared.getCustomerInfo {…

 

I am currently on version 3.10.7

 

What am I missing?

 

 

This post has been closed for comments

1 reply

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • March 3, 2022

Hey @Peter Grutter!

We just launched v4 of our iOS SDK - this renamed some methods from 3.x. In particular, the legacy 3.x method name for `Purchases.shared.getCustomerInfo` was `Purchases.shared.purchaserInfo`.

If you need to stay on 3.x, you can view the previous version of our documentation here: https://docs.revenuecat.com/v3.3/docs

Otherwise, I’d recommend updating to v4.x by following our migration guide here: https://docs.revenuecat.com/docs/ios-native-3x-to-4x-migration


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