Skip to main content
Solved

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

  • 27 August 2024
  • 2 replies
  • 22 views

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.

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.


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 🙂.


Reply