Skip to main content
Solved

Premium user entitlements.active list is empty


Forum|alt.badge.img+4

I the app developer and i purchased the premium version of my app in production. ideally i should be getting something in entitlement active object: [Kotlin code] 

customerInfo.entitlements.active.isNotEmpty() 

The above code should return true, but only in case of my account its returning as false. and when trying to call the restore method:

Purchases.sharedInstance.restorePurchases(object : ReceiveCustomerInfoCallback{        override fun onError(error: PurchasesError) {            showToast(this@AccountManagerActivity,error.message)        }        override fun onReceived(customerInfo: CustomerInfo) {            val value = customerInfo.activeSubscriptions.toString()            showToast(this@AccountManagerActivity,value)        }    })}

 

Its throwing some server error.

 

Please help as currently its reported in my account and could happen with a premium user as well. Thanks in advance.

Best answer by Michael Fogel

Hey @Rishabh Jain ,

 

This could be happening for a lot of different reasons, I suggest opening a ticket with Support here. That way we can get some more info about this and get debug logs that replicate the situation!  

 

 

View original
Did this post help you find an answer to your question?

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • August 31, 2023

Hey @Rishabh Jain ,

 

Can you please send the error that you are receiving when restoring purchases? 

 

Are you possibly checking for the entitlement in a sandbox or debug version of your app despite you having the entitlement in production? 


Forum|alt.badge.img+4
  • Author
  • New Member
  • 1 reply
  • August 31, 2023

Hey @Michael Fogel,

 

Thanks for the reply. When I try to restore the purchase, it shows error message: “There was an unknown backend error”. I’m checking this in prod version of the app downloaded via Google play store.


Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • Answer
  • September 5, 2023

Hey @Rishabh Jain ,

 

This could be happening for a lot of different reasons, I suggest opening a ticket with Support here. That way we can get some more info about this and get debug logs that replicate the situation!  

 

 


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