5

I have used showManageSubscriptions function show subscription sheet with subscription options within the application but there is a close button in the sheet which action is not detected, button is clickable though.

@available(iOS 15.0.0, *)
    func showManageSubscription(_ windowScene: UIWindowScene) async {
        do {
            try await StoreKit.AppStore.showManageSubscriptions(in: windowScene)
            print("Sheet is closed")
        } catch {
            print("Sheet can not be opened")
        }
    }

Please help me to get the close button action.

Reference link: https://developer.apple.com/documentation/storekit/appstore/3803198-showmanagesubscriptions#parameters

Please see screenshot enter image description here

Saumil Shah
  • 2,299
  • 1
  • 22
  • 27

1 Answers1

4

Finally! I got solution of it.

This was defect from Apple side. Apple has fixed it on iOS 15.4 and later operation system.

Tested ✔️

Saumil Shah
  • 2,299
  • 1
  • 22
  • 27