StoreKit 2 • How to know when a user cancelled the subscription during free trial?

Hello,

When a user cancels a subscription during a free trial, we should stop providing access to content. How can we know that? From the in app management in Xcode, when I cancel a subscription during free trial period (cancelling in the few seconds after the purchase), the currentEntitlements still provide the subscription.

How to know when a user cancelled the subscription during free trial?

Thanks

Introductory offers periods behave like other transaction period where service should be provided until the expiresDate or revocationDate (Original SK: expires_date or cancellation_date).

Thanks, I think a bug in Xcode made it hard for me to understand that a transaction for a free trial is a transaction with the trial duration (I thought it was included in a normal transaction). When running in Simulator, the introductory offer is not taken into account and the first transaction has a duration equals to the subscription period (see attached screenshots). It's working correctly on a real device. If you want to try it by yourself, I submitted a feedback FB9789041 few minutes ago: StoreKit 2 • introductory offer duration ignored in Simulator, where the expirationDate is wrong (correct on real device).

StoreKit 2 • How to know when a user cancelled the subscription during free trial?
 
 
Q