Skip to main content
Solved

How can I know using the SDK if subscription is canceled?

  • 2 September 2024
  • 1 reply
  • 31 views

Forum|alt.badge.img
  1. Can I know if a subscription is cancelled using the Flutter sdk? I only found allExpirationDates property.
     
  2. Does the expiration date refer to the date when the subscription will end if not being renewed in the meantime? Does it also refer to the date when a canceled subscription ends its current active interval and becomes inactive?


    Thanks!

Best answer by kaitlin

Hi @catalin-morosan,

(Sorry if you got a notification with an incomplete message - I hit send too soon!)

  1. To see if a subscription has been cancelled, you can use the `unsubscribeDetectedAt` property in the `EntitlementInfo` - this will be null if the user has not opted out of auto-renewal.
  2. The expiration date refers to all of the above! For a subscription that has not been cancelled, this will be the date that renewal is expected. For a subscription that has been cancelled, this is the date that access will expire. 
View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 342 replies
  • Answer
  • September 5, 2024

Hi @catalin-morosan,

(Sorry if you got a notification with an incomplete message - I hit send too soon!)

  1. To see if a subscription has been cancelled, you can use the `unsubscribeDetectedAt` property in the `EntitlementInfo` - this will be null if the user has not opted out of auto-renewal.
  2. The expiration date refers to all of the above! For a subscription that has not been cancelled, this will be the date that renewal is expected. For a subscription that has been cancelled, this is the date that access will expire. 

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