SubscriptionStatusIOS

SubscriptionStatusIOS#

Subscription status from StoreKit 2. Use subscriptionStatusIOS(sku) to get detailed subscription state.

iOS only. A trimmed projection of Apple's Product.SubscriptionInfo.Status — the OpenIAP wrapper exposes renewalInfo and state only; transaction from the Apple type is not surfaced (Apple docs).

NameSummary
stateCurrent renewal state (see values below)
renewalInfoRenewal details. Contains: willAutoRenew, autoRenewPreference

Subscription State Values#

The state field indicates the current subscription status:

StateDescriptionUser Access
subscribedActive subscriptionGrant access
expiredSubscription has expiredDeny access
revokedRefunded by AppleDeny access
inGracePeriodBilling failed but grace period activeGrant access (temporary)
inBillingRetryPeriodBilling retry in progressConsider granting access

iOS Expiration Reasons#

When willAutoRenew is false, the expirationReason field in renewalInfo indicates why:

ReasonDescription
VOLUNTARYUser cancelled the subscription
BILLING_ERRORPayment failed (card declined, etc.)
DID_NOT_AGREE_TO_PRICE_INCREASEUser declined a price increase
PRODUCT_NOT_AVAILABLEProduct no longer available for purchase
UNKNOWNUnknown reason