Solved

How to check that user canceled subscription

  • 25 September 2021
  • 2 replies
  • 991 views

Badge +2

Hi,

How can I check if a user has canceled a subscription or trial?

If a user has canceled a subscription, his status is active until its expiration date. It's the same with the trial period. Is it possible to determine it was canceled, but at the same time it is still valid?

 

Thanks 

icon

Best answer by cody 27 September 2021, 17:19

View original

2 replies

Userlevel 6
Badge +8

Hey @Dmitriy!

You can check the ‘unsubscribe detected at’ property of an entitlement to determine if a user has unsubscribed to their subscription. If the property is not null, the user has unsubscribed.

You can read more about this in our documentation here: https://docs.revenuecat.com/docs/purchaserinfo#get-entitlement-information

Badge +2

Hi, Thank you for your answer! 

Reply