Waris Ali
Waris Ali

Reputation: 522

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

Upvotes: 1

Views: 562

Answers (1)

enc_life
enc_life

Reputation: 5169

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

Upvotes: 2

Related Questions