How to check if a Subscription is being upgraded in Swift

Verify the Auto-Renewable Subscription status renewalInfo and check its isUpgraded property.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 03/26/2023 at 16:51
Last Updated on 03/27/2023 at 15:39
Three flowers that represent StoreKit, Swift and XCode side by side. Beneath them sits the text “is a Subscription Upgrading?.”

Verify the Auto-Renewable Subscription status renewalInfo and check its isUpgraded property.

The guide was made using our Free iOS StoreKit 2 Open Source project which is recommended for developers or business folk wishing to learn about how In-App Purchases or Subscriptions work and the code behind them.

SubscribeFree Open-Source Apple StoreKit 2 Swift Project

Use the snippet below to determine if a subscription is upgrading or not.

We recommend making this an extension of the StoreKit Coordinator.

Please note that the checkVerified function was created as part of our StoreKit Coordinator guide.

How to create a StoreKit Coordinator in SwiftHow to use async and await in Swift projects

Looking to get the status of an Auto-Renewable Subscription?

Consult our article to learn how to determine if an Auto-Renewable Subscription is subscribed, expiring, in billing retry, in a grace period, expired or revoked.

How to get an Auto-Renewable Subscription's status in Swift

Looking to learn more about developing apps with StoreKit 2?

Read our comprehensive development guide linked below to learn about all the secrets behind developing In-App Purchases and Subscriptions with StoreKit 2.

Read Apple StoreKit 2 Development Guide

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe