iostestflightin-app-subscription

How to cancel Auto-renewable subscription bought in Testflight?


I've read several topics on cancelling subscriptions in sandbox environment, but it seems to me that it could not be applied to TestFlight.

I can cancel sandbox subscriptions through Settings > App Store > Sandbox account.

But since TestFlight does not use sandbox account I cannot cancel a sub from there. Also, TF purchase does not appear in the list of regular subscriptions (Settings > Profile > Media & Purchases).

So my question is: is there any way to manually cancel auto-renewable subscription bought in TestFlight build of the app?


Solution

  • It looks like this API displays application's subscriptions, and the test ones should appear there as well

      func showManageSubscriptions(){
            if #available(iOS 15.0, *) {
                if let window = UIApplication.shared.connectedScenes.first {
                    Task {
                        do {
                            try await AppStore.showManageSubscriptions(in: window as! UIWindowScene)
                        } catch {
                            print(error)
                        }
                    }
                }
            } else {
                // Fallback on earlier versions
            }
        }