Skip to main content

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

}
}

 

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