Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 2462e56

Browse files
committed
fix: fixed isEligibleForIntroOfferIOS()
1 parent 4824756 commit 2462e56

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Sources/OpenIapModule.swift

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -606,17 +606,7 @@ public final class OpenIapModule: NSObject, OpenIapModuleProtocol {
606606
// MARK: - Misc
607607

608608
public func isEligibleForIntroOfferIOS(groupID: String) async throws -> Bool {
609-
for await verification in Transaction.currentEntitlements {
610-
do {
611-
let transaction = try checkVerified(verification)
612-
if transaction.subscriptionGroupID == groupID {
613-
return false
614-
}
615-
} catch {
616-
continue
617-
}
618-
}
619-
return true
609+
await StoreKit.Product.SubscriptionInfo.isEligibleForIntroOffer(for: groupID)
620610
}
621611

622612
public func syncIOS() async throws -> Bool {

0 commit comments

Comments
 (0)