Question

how to map Offerings with Entitlements in IOS SDK

  • 5 April 2022
  • 1 reply
  • 44 views

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

}
}

 


1 reply

Userlevel 5
Badge +9

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?

Reply