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-intro-offer-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 isEligibleForIntroOfferIOS

Check introductory offer eligibility for a subscription group (iOS 15+, macOS 14+).

Wraps Product.SubscriptionInfo.isEligibleForIntroOffer(for:) — checks subscription-group level eligibility. See the Apple StoreKit reference.

Signature

swift
func isEligibleForIntroOfferIOS(groupID: String) async throws -> Bool

Parameters#

  • groupId (required, string) — Non-empty subscription group identifier. Empty or whitespace-only values fail closed and return false. (Native Swift / Kotlin signatures spell it groupID; the JavaScript / Dart wrappers expose it as groupId.)

Returns#

Promise<boolean> — true if the user is eligible for the group's introductory offer.

Example

swift
let ok = try await OpenIapModule.shared.isEligibleForIntroOfferIOS(groupID: "com.app.subgroup")