Skip to main content
Question

EntitlementInfo is null.

  • January 10, 2025
  • 4 replies
  • 34 views

Forum|alt.badge.img+2

Hope someone can help.

In my Android app (which I’m still developing, so in test / sandbox mode etc), RevenueCat purchases seem to work okay. However, after a purchase, in onCompleted, I’m trying to get EntitlementInfo from provided CustomerInfo, and it’s (EntitlementInfo) always null.

I’ve also attempted to get EntitlementInfo from CustomerInfo using the RecieveCustomerInfoCallback, a few moments after the purchase completed (so, not immediately after), and EntitlementInfo is still null.

Also, just to add, it’s a non-consumable product.

Any suggestions?

This post has been closed for comments

4 replies

Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • January 10, 2025

Imagine this is related. When I try to restore purchases...

Error consuming purchase. Will retry next queryPurchases. DebugMessage: Item is not owned by the user.. ErrorCode: ITEM_NOT_OWNED.

Also, after each purchase is completed it’s getting consumed immediately (Consuming purchase with token ...), and I can purchase the item again. Which I think is expected behaviour before an app is live on an app store?

Could this explain why there is no entitlement?

If that’s the case, how do I test for entitlements?


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 238 replies
  • January 16, 2025

Hi ​@Mr Qwak, thanks for posting. It might be best to reach out to support, as we can dig into your configuration and logs and see what’s happening. Also, I’m sure you’ve already configured this, but I wanted to double-check that you’ve created an Entitlement and attached your products to it.

Regarding the “item not owned by the user” issue, can you review your restore/transfer behavior and let us know if you’ve chosen any option other than the default (“Transfer to new App User ID”)?


Forum|alt.badge.img+2
  • Author
  • New Member
  • 2 replies
  • January 17, 2025

Thanks for your response Jeffrey.

Yeah, there were a few things I was struggling to get to grips with, and I was also confusing Entitlement ‘Identifier’ with ‘RevenueCat Entitlement ID‘.

I’m making progress now. Will reach out to your support if need be.

There are only non-consumable IAP’s in my Android app, and one thing that I’m still not sure of; if a customer requests a refund with Google, does revenue cat monitor and reflect the change in it’s Entitlements? If so, how long does it take for the Entitlement to update?

Thanks again.


jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 238 replies
  • January 24, 2025

@Mr Qwak You’re welcome! As long as you’ve integrated Google Real-Time Developer Notifications, we should update entitlements as soon as we receive the updated information from Google.


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