Skip to main content

How to get "Associated Entitlements" for all product?

  • January 20, 2022
  • 3 replies
  • 161 views

Forum|alt.badge.img

Hi,

I have multiple entitlements in my app and I want to group the products under respective entitlement on my paywall. I am able to get only purchased entitlements from `getPurchaserInfo` . Is their a way to get the "Associated Entitlements" for all products (both purchased and not purchased)?

 

Thank you

3 replies

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

Hey @Raj!

This association isn’t returned on the products through the API currently, so I’m not sure if there would be a straightforward way to do this. However, the use-case makes complete sense and I’ll share this with our engineering team as a feature request. I think it would require a change to the GET /offerings API to add the association, and an update to the  SDKs to parse the new API response appropriately. 

There isn’t a workaround I can think of that doesn’t involve some level of hardcoding 🤔. 


Forum|alt.badge.img
  • Author
  • 2 replies
  • January 22, 2022

@ryan Thank you so much for the response. Hope this feature is developed soon. I think for now I will harcode the entitlement info in the product identifier so I don’t have to hardcode in the code.


Forum|alt.badge.img
  • New Member
  • 1 reply
  • February 28, 2022

Hey @ryan is there any estimated time, when this feature will be added to the SDK, or the other way around this?


Reply


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