Skip to main content
Solved

How to check that user canceled subscription

  • 25 September 2021
  • 2 replies
  • 1206 views

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 

Hi, Thank you for your answer! 


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


Reply