Post

Replies

Boosts

Views

Activity

Reply to StoreKit 2 - latest transaction for a subscription is not the latest one at launch when app is not running
Thanks for your answer. I’m observing the same behaviour in the sandbox environment. Here are the steps I've done if that helps: I created a Sandbox account in App Store Connect: I cleared the Purchase History for this tester and set the Subscription Renewal Rate to Monthly Renewal Every 3 Minutes. I created a fake App in App Store Connect. I configured a subscription group in App Store Connect for this fake app and added a monthly subscription to this subscription group (this monthly subscription is in Ready To Submit stage after I added enough meta data). I run the app without using the Xcode config file: the product added to the app on App Store Connect is correctly loaded by the app and I can subscribe to it using the sandbox account on a real device. I leave the app opened and I receive the transactions when the app is running. I hard quit the app and wait enough time for virtual renewals to normally be created (for example I wait 30 minutes, which should have renewed the app 10 times based on the Sandbox tester account setup for subscription renewal rate). I launch the app again and fetch the last transaction for this subscription: it's still the one downloaded 30 minutes ago, before the app was quitted. I fear the behavior is the same in a production environment so I fear I missed anything and don’t want to ship not working subscription management in my app.
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’21
Reply to StoreKit 2 • How to know when a user cancelled the subscription during free trial?
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).
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’21
Reply to StoreKit 2 - latest transaction for a subscription is not the latest one at launch when app is not running
Feedback sent: FB9825000
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to StoreKit 2 - latest transaction for a subscription is not the latest one at launch when app is not running
Thanks for your answer. I’m observing the same behaviour in the sandbox environment. Here are the steps I've done if that helps: I created a Sandbox account in App Store Connect: I cleared the Purchase History for this tester and set the Subscription Renewal Rate to Monthly Renewal Every 3 Minutes. I created a fake App in App Store Connect. I configured a subscription group in App Store Connect for this fake app and added a monthly subscription to this subscription group (this monthly subscription is in Ready To Submit stage after I added enough meta data). I run the app without using the Xcode config file: the product added to the app on App Store Connect is correctly loaded by the app and I can subscribe to it using the sandbox account on a real device. I leave the app opened and I receive the transactions when the app is running. I hard quit the app and wait enough time for virtual renewals to normally be created (for example I wait 30 minutes, which should have renewed the app 10 times based on the Sandbox tester account setup for subscription renewal rate). I launch the app again and fetch the last transaction for this subscription: it's still the one downloaded 30 minutes ago, before the app was quitted. I fear the behavior is the same in a production environment so I fear I missed anything and don’t want to ship not working subscription management in my app.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to StoreKit 2 • How to know when a user cancelled the subscription during free trial?
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).
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to StoreKit 2 • updateListenerTask never called (Ask To Buy context for example)
It's working normally with Xcode Version 13.1 (13A1030d) and iOS 15.0 (simulator). I think it's a bug, I'll fill a report for that.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’21