Skip to main content
Answer

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

  • September 2, 2024
  • 1 reply
  • 85 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. 
This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 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.