Question

Cannot access Purchases.shared.getCustomerInfo in Swift

  • 3 March 2022
  • 1 reply
  • 121 views

Badge +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?

 

 


1 reply

Userlevel 6
Badge +8

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

Reply