Post

Replies

Boosts

Views

Activity

Reply to Stopping renewal on subscription
The SwiftUI for Storekit .manageSubscriptionsSheet() view modifier exposes a complete in-app subscription management interface that allows you to enable the user to cancel an active subscription or select a new subscription from your app's subscription group from within your app. .manageSubscriptionsSheet( isPresented: $presentingSubscriptionSheet, subscriptionGroupID: ProductIdentifiers.subscriptionGroupID ) Hope this helps.
Oct ’24
Reply to Subscription State Persistence with new StoreKit SwiftUI API
@Skylark this seems to be the case. I’ve spent almost a week trying dozens of variations to detect subscription cancel from AppStore or other device in order to manage subscription state persistence — without success. The challenge is due to the fact that StoreKit does not send a separate transaction when a subscription is cancelled but instead updates the subscription transaction record to expired. From my reading you are supposed to be able to detect this through the absence of a particular product in CurrentEntitlements, but I cannot figure out how to do this. This is such a common use case that I believe I might be over complicating something that is already handled by the StoreKit API. Any thoughts on how others are handling subscription cancels is appreciated.
Jul ’24
Reply to StoreKit 2: cancellation button
The .storeButton(.visible, for: .cancellation) does not refer to a button to cancel a subscription -- it is a setting to show or hide the button to cancel the store view. This button is displayed in the upper right corner of the store view and is used to dismiss the view. Depending on your paywall logic you may or may not want to show this button -- hence the option to make it visible or hidden. I had the same misconception for days until I figured it out. Hope this helps.
Nov ’23