Use this page with AI

Copy this into your coding assistant and add your request.

Read https://openiap.dev/docs/apis/ios/is-eligible-for-external-purchase-custom-link-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 isEligibleForExternalPurchaseCustomLinkIOS

Check whether the app is eligible to use the ExternalPurchaseCustomLink API (iOS 18.1+, macOS 15.1+). Returns true when the bundle is approved for the corresponding entitlement and music-streaming-app-style flows are allowed.

Wraps ExternalPurchaseCustomLink.isEligible — iOS 18.1+, macOS 15.1+. See the Apple StoreKit reference.

Signature

swift
func isEligibleForExternalPurchaseCustomLinkIOS() async throws -> Bool

Returns#

Promise<boolean> — Whether the app can use ExternalPurchaseCustomLink (iOS 18.1+, macOS 15.1+).

Example

swift
let ok = try await OpenIapModule.shared.isEligibleForExternalPurchaseCustomLinkIOS()