iOS showManageSubscriptionsIOS

Show in-app subscription management UI and detect status changes (iOS 15+). Returns purchases for subscriptions whose auto-renewal status changed.

Opens Apple's subscription-management surface for the user. The current iOS implementation forwards to the module's deepLinkToSubscriptions(nil) path, which calls AppStore.showManageSubscriptions(in:) with the active UIWindowScene; if no scene is available the call throws instead of falling back to a URL. Because the macOS browser fallback cannot wait for or observe changes made outside the app, this change-detection API is not supported on macOS. iOS 15+. See the Apple StoreKit reference.

Signature

swift
func showManageSubscriptionsIOS() async throws -> [PurchaseIOS]

Returns#

Promise<PurchaseIOS[]> — purchases whose status changed while the manage-subscriptions sheet was on screen (e.g. cancelled or auto-renew toggled). Empty array when nothing changed.

Example

swift
let changed = try await OpenIapModule.shared.showManageSubscriptionsIOS()