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 -> BoolParameters#
groupId(required,string) — Non-empty subscription group identifier. Empty or whitespace-only values fail closed and returnfalse. (Native Swift / Kotlin signatures spell itgroupID; the JavaScript / Dart wrappers expose it asgroupId.)
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")