How to detect if user cancel auto-renewable subscriptions during the free trial period?

user523234

Apple's document does not seem to mention this. So if user cancels an auto-renewable subscription purchased during the free trial period, how do we detect?

In appstore receipt JSON there is this field: is_trial_period. But I think this is for indication of whether the free trial period is over.

The only thing I can think of is this NSBundle.mainBundle().appStoreReceiptURL?.path and if this is nil than that will indicate the user has not subscribed or cancel within the free trial period. But for sandbox testing, there is no way to do a cancel during free trial period to test this scenario.

Does anyone have a solid knowledge of this?

Paulw11

In order to support auto-renewing subscriptions, your app needs to periodically submit the app receipt obtained from NSBundle.mainBundle().appStoreReceiptURL?.path to Apple's receipt validation service.

Contained in the JSON response from this service is the latest_receipt_info array.

By examining this array you will be able to determine the currently active subscription(s).

If a user turns off auto-renewal before the expiration of the free trial then latest_receipt_info won't contain a purchase with an expires_date after the free trial end date

This means, that strictly speaking, you can't "detect a cancellation" as there is no "cancellation"; there just isn't a renewal at the end of the free trial period.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

I need to apply free trial period for my auto renewable subscriptions. Can anyone suggest the process for this?

Auto Renewable Subscription Free Trial Not Working

How to support / offer iOS subscriptions with a free trial period?

iOS: How to detect if a user is subscribed to an auto-renewable subscription

ios auto-renewable-subscriptions - simulate cancel operation

Free trial implementation for auto-renewable subscription for macOS app

iOS - In App Purchase - auto renew subscription - How to get notified if the user cancel or auto renewable subscription?

Apple Auto Renewable Subscriptions - Validating User Against Receipt

Do I need the server side to support iOS Grace Period of auto-renewable subscriptions?

PayPal IPNs for subscriptions with a trial period

Woocommerce subscriptions - How to get the trial period in days of a subscription product in woocommerce

ios auto-renewable-subscriptions - restore operation

Restoring auto-renewable subscriptions after

Enable server notifications for auto-renewable subscriptions

iOS & Firebase Auto-renewable Subscriptions

Is restore button necessary for Auto-renewable subscriptions?

Restoring expired auto-renewable subscriptions

iOS Auto Renewable Subscriptions and Receipt Validation Clarifications

How to detect and verify a renewal for an auto-renewable subscription?

How to make IAP purchase request with free trial period?

How Apple IAP Auto-renewable multiple subscriptions for same product works?

iOS auto-renewable subscriptions: receipt validation flows

ios auto-renewable-subscriptions - identifying who purchased

Any (early) experiences with auto-renewable subscriptions for iOS

App Store Connect - In App Purchase creation not allowing Auto Renewable Subscriptions

Validate iOS auto-renewable subscriptions from multiple apps

Unable to submit App with Auto-Renewable Subscriptions for a non Newsstand App

How to give each user a free trail period

All Google Play subscriptions are refunded after trial period

TOP Ranking

HotTag

Archive