How to detect close button action for default manage subscription in iOS 15?

I have used showManageSubscriptions function to show the subscription sheet with subscription options within the application but there is a close button in the sheet in which action is not detected, the 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 check Developer Documentation

Is this snippet not resulting in it being printed out when the sheet is dismissed with the "x"? print("Sheet is closed")

If not, please file a ticket to http://feedbackassistant.apple.com

This issue is solved in iOS 15.4.

Same problem here and had this problem also with SwiftUI view modifier .manageSubscriptionsSheet(isPresented: self.$showManageSubscriptions)

Any workaround ?

This is still a problem on iOS15.5, at least in the sandbox.

How to detect close button action for default manage subscription in iOS 15?
 
 
Q