Contents

isEligibleForIntroOffer

A Boolean value that indicates whether the customer is eligible for an introductory offer.

Declaration

var isEligibleForIntroOffer: Bool { get async }

Discussion

This value is true if the customer is eligible for an introductory offer on this auto-renewable subscription, or any auto-renewable subscription in the same subscription group; this value is false otherwise. This value may be true even if you haven’t set up an introductory offer in App Store Connect. The following example illustrates checking the subscription property of a product to determine whether the user is eligible for an introductory offer.

func eligibleForIntro(product: Product) async throws -> Bool {
    guard let renewableSubscription = product.subscription else {
        // No renewable subscription is available for this product.
        return false
    }
    if await renewableSubscription.isEligibleForIntroOffer {
        // The product is eligible for an introductory offer.
        return true
    }
    return false
}

To specify a customer’s eligibility for an introductory offer, see introductoryOfferEligibility(compactJWS:).

See Also

Getting introductory offer details