Skip to main content
Question

how to map Offerings with Entitlements in IOS SDK

  • April 5, 2022
  • 1 reply
  • 52 views

Forum|alt.badge.img+1

I’m using the iOS SDK getOfferings API which provides the Offerings Data 
how we can get the Entitlement ID from the Offering or Package ?
 

Purchases.shared.getOfferings { (offerings, error) in
    if let packages = offerings?.current?.availablePackages {

     // want to know the Entitlement ID from the Offering or Package

    }
}

 

This post has been closed for comments

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • April 8, 2022

There currently isn't a way to get the Entitlement ID from the Package - but we have this as a feature request for an API enhancement! There wouldn't be an Entitlement ID property on the Offering since an Offering can contain an array of Packages that each unlock a different Entitlement. What is it that you're trying to accomplish? Maybe there's a workaround I could suggest?


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