Skip to main content
Solved

Premium user entitlements.active list is empty

  • Aug 29, 2023 2:48 AM UTC
  • 3 replies
  • 631 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!  

 

 

View original
This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • Aug 31, 2023 4:08 PM UTC

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
  • Aug 31, 2023 4:14 PM UTC

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
  • Sep 5, 2023 6:47 PM UTC

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!