Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/ios/show-external-purchase-custom-link-notice-ios 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 →

iOS showExternalPurchaseCustomLinkNoticeIOS

Display the system disclosure notice for ExternalPurchaseCustomLink (iOS 18.1+, macOS 15.1+). Apple requires this sheet to be presented after a deliberate customer interaction, before you can route the user to an external purchase URL.

Wraps ExternalPurchaseCustomLink.showNotice(type:) — required disclosure sheet before linking out. iOS 18.1+, macOS 15.1+. See the Apple StoreKit reference.

Signature

swift
func showExternalPurchaseCustomLinkNoticeIOS(
    _ noticeType: ExternalPurchaseCustomLinkNoticeTypeIOS
) async throws -> ExternalPurchaseCustomLinkNoticeResultIOS

Parameters#

  • noticeType (required, ExternalPurchaseCustomLinkNoticeTypeIOS) — Disclosure style.

Returns#

Promise<ExternalPurchaseCustomLinkNoticeResultIOS> — carries:

  • continued (boolean) — Whether the user chose to continue to the external purchase.
  • error (string?) — Populated when the sheet fails to present.

Example

swift
let result = try await OpenIapModule.shared.showExternalPurchaseCustomLinkNoticeIOS(
    .browser
)

ExternalPurchaseCustomLinkNoticeTypeIOS currently has a single value: 'browser' (case-sensitive — Swift / Kotlin / Dart spell it as .browser / .Browser).