Skip to main content
Solved

How to detect automatically when InAppPurchase subscription expire or is cancelled by user ?

  • August 27, 2024
  • 2 replies
  • 112 views

Forum|alt.badge.img+2

How to detect automatically when InAppPurchase subscription expire or is cancelled by user ?

My app show some feature on the home page and I want to display them only for subscribed users.
If the user cancel the subscription in an other device how to detect that ?

Firebase claims seems to not be automatically updated...

I’m using flutter.

Best answer by Ryan Glanz

You should check the user’s subscription status according to this doc: https://www.revenuecat.com/docs/customers/customer-info

 

Otherwise, I’d just point out that a user should still have access after a cancellation until the end of the billing cycle, at which point we’ll send an expiration event and revoke the user’s entitlement if they didn’t resubscribe.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • Answer
  • August 29, 2024

You should check the user’s subscription status according to this doc: https://www.revenuecat.com/docs/customers/customer-info

 

Otherwise, I’d just point out that a user should still have access after a cancellation until the end of the billing cycle, at which point we’ll send an expiration event and revoke the user’s entitlement if they didn’t resubscribe.


Forum|alt.badge.img+2

Okay, i will rework my code to use more customer-info instead of firebase claims on frontend side. Also i think i should call customer-info on app open, foreground etc.

Ty :).


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