Search code examples
iosapp-store-connectituneswebhooksstorekit

Need to know when someone cancels a renewable subscription


Good day, Can someone please tell me how can I know track an event in my code/server when someone cancels a auto-renewable subscription from itunes/appleid Thankyou


Solution

  • To check when someone cancels a renewable subscription, you need to periodically refresh the receipt on your server and check the:

    1. Expiration Date (lets you know if subscription is still active)
    2. Auto-renew status (lets you know if the user "cancelled")
    3. Cancellation Date (tells you why subscription cancelled by support)

    Usually developers get 2 and 3 confused. Apple doesn't consider a user opting out of auto-renew a "cancellation" - when in fact that's what most developers would consider a cancellation. For this reason, it's NOT sufficient to listen for CANCEL events with the subscription status notifications.

    Here's a good blog post that goes over the details: iOS Subscriptions are Hard