Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/deep-link-to-subscriptions and https://openiap.dev/llms.txt. Follow the reading instructions, detailed reference, and linked guides relevant to my task before making changes.
Inspect my existing project and reuse its framework and conventions. Ask me for missing product decisions. Implement the requested behavior and run the applicable checks.
Show the working result, the commands and actual test results, and any remaining limitations. Keep your explanation brief.

My request: [describe what customers should be able to do]
See an example request →

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)