Skip to main content
Answer

Premium user entitlements.active list is empty

  • August 29, 2023
  • 3 replies
  • 251 views

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!  

 

 

This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 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
  • 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
  • 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!