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")