Even if a user canceled a subscription on AppStore, the current period still is valid until the end of the period, is it correct? If so, I have a question.
If the user resubscribes the same one while the period of the canceled subscription is still valid, will any server notification be sent to the endpoint? Plus, what notification_type does the notification has?
If the user resubscribes the same one while the period of the canceled subscription is still valid, will any server notification be sent to the endpoint? Plus, what notification_type does the notification has?
When a user cancels a subscription on App Store, the auto-renewal of the subscription is turned off, and their current subscription remains active until the end of the current period. If the user resubscribes before the expiration date, the auto-renewal of the the subscription is simply turned back on.
A server-to-server notification will be sent each time when the auto-renew status of a subscription is changed, and the notification_type will be DID_CHANGE_RENEWAL_STATUS. The auto_renew_status field in the payload will tell you whether the subscription will be automatically renewed or not.
Resources:
https://developer.apple.com/documentation/appstoreservernotifications/notification_type
https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1
https://developer.apple.com/documentation/storekit/in-app_purchase/subscriptions_and_offers/implementing_subscription_offers_in_your_app
A server-to-server notification will be sent each time when the auto-renew status of a subscription is changed, and the notification_type will be DID_CHANGE_RENEWAL_STATUS. The auto_renew_status field in the payload will tell you whether the subscription will be automatically renewed or not.
Resources:
https://developer.apple.com/documentation/appstoreservernotifications/notification_type
https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1
https://developer.apple.com/documentation/storekit/in-app_purchase/subscriptions_and_offers/implementing_subscription_offers_in_your_app