Skip to main content
Answer

info.entitlements empty despite having product in dashboard

  • January 17, 2022
  • 2 replies
  • 545 views

Forum|alt.badge.img+2

Despite having entitlement in my dashboard, when I print (info.entitlements), I get:
 

<RCEntitlementInfos: self.all={

}, self.active={

}>

Best answer by tina

Hi @Daniyal Dehlehhosseinzadeh 

The EntitlementInfo object is tied to a subscriber’s subscription status. Meaning if the app user ID you’re testing with has not purchased a product that’s attached to an entitlement yet, the EntitlementInfo object will be null. You should make a sandbox purchase first, then recheck the EntitlementInfo object. 

This post has been closed for comments

2 replies

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • Answer
  • January 22, 2022

Hi @Daniyal Dehlehhosseinzadeh 

The EntitlementInfo object is tied to a subscriber’s subscription status. Meaning if the app user ID you’re testing with has not purchased a product that’s attached to an entitlement yet, the EntitlementInfo object will be null. You should make a sandbox purchase first, then recheck the EntitlementInfo object. 


Forum|alt.badge.img

Hi, may I ask is there any means for me to have access to all the entitlements before a purchase was being made? Thanks!