deepLinkToSubscriptions

Open the native subscription management interface where users can view and manage their subscriptions.

iOS: Calls AppStore.showManageSubscriptions(in:) with the active UIWindowScene; throws if no window scene is available. Not supported on tvOS or watchOS. On macOS, opens https://apps.apple.com/account/subscriptions in the default browser and returns after the browser is launched. Apple docs. Android: Opens the Play Store subscription management deep link https://play.google.com/store/account/subscriptions?package=<pkg>&sku=<sku>. Google docs.

Signature

swift
func deepLinkToSubscriptions(_ options: DeepLinkOptions?) async throws

Parameters#

Pass an optional DeepLinkOptions:

  • skuAndroid (optional, string) Android. Subscription SKU to deep-link to. Without it the user lands on the generic Play subscriptions page.
  • packageNameAndroid (optional, string) Android. Defaults to the host app's package; override only when proxying for another app.

iOS ignores all fields — the wrapper calls AppStore.showManageSubscriptions(in:) with the active UIWindowScene.

Returns#

Promise<void> — Resolves when the system surface is presented (or the deep link is opened on Android).

Throws#

iOS: When no UIWindowScene is available.

Example

swift
try await OpenIapModule.shared.deepLinkToSubscriptions(nil)