---
title: "Lifetime purchase while a subscription is active"
slug: lifetime-purchase-while-a-subscription-is-active
section: tech
date: 2026-12-05T08:47:00.000Z
canonical: https://roland.leth.ro/blog/tech/lifetime-purchase-while-a-subscription-is-active
description: "Buying Lifetime doesn't cancel a StoreKit subscription that's still active. How I warn before the purchase, alert right after it, and catch billing retry."
---

If an app sells Pro both as a subscription and as a one-time Lifetime purchase, a subscriber who buys Lifetime keeps their subscription running. Buying Lifetime doesn't cancel it, and I found nothing in StoreKit that would let the app cancel it for them; they have to do it themselves, in Settings on an iPhone or in the App Store on a Mac ([Apple's steps][cancel]). If nobody tells them, it keeps renewing and charges them for something they already own, and you're the one who gets paid for it.

I believe the right thing to do is to mention this, right when it happens (or even before), and send the user straight to where they can cancel it. Someone who buys Lifetime most likely does it to stop paying every month/year, so it's pretty natural for them to assume the subscription ended right there.

The examples below come from my own apps, which sell Pro as a monthly or yearly subscription, or as Lifetime: mostly [Weekly Gym][weekly-gym], and [Continuum][continuum] where the Mac does things differently.

## Before the purchase

In Weekly Gym, someone with Pro active finds this info in Settings, as a Weekly Gym Pro row with their plan next to it and the renewal/expiration date; this row then opens a screen with more info.

![Settings in Weekly Gym, near the bottom: the Weekly Gym Pro row, with the plan and the day it renews][image-pro-row]

For a subscriber, that screen starts with 3 rows: Manage subscription, which opens Apple's sheet for their subscriptions, then "Pay once instead" and Restore purchases, with what Pro includes under them.

With Pro active, "Pay once instead" is the _only_ place in the app to buy Lifetime, since the paywall only opens when someone without Pro taps something Pro unlocks. The row opens a small sheet with just the Lifetime plan and its buy button, and while their subscription still renews, a warning sits right above them:

![The Pay once instead sheet over the Weekly Gym Pro screen, with the warning above the Lifetime plan][image-sheet]

I wanted that warning in the sheet, since every subscriber who buys Lifetime in the app goes through it (a subscription that's already canceled doesn't get it).

Someone whose subscription is in billing retry (a renewal failed, and the App Store keeps trying to perform the charge) has no Pro, so they'd buy Lifetime from the paywall, not from the Pro screen. There, a note sits right above the buy button once they pick Lifetime. An alert after, like the one below, would've had nowhere to show up: the paywall closes itself the moment Pro turns on.

![The paywall with Lifetime selected, and the note above the buy button][image-paywall]

## The alert after buying Lifetime

The app reads StoreKit again after every purchase, so if Lifetime gets purchased while a subscription is still active, the sheet now shows an alert.

![The "You have Lifetime now" alert, with Manage subscription as its only button][image-alert]

Nothing left to cancel? The sheet just closes.

The alert has only one button, Manage subscription, which opens Apple's Manage Subscriptions sheet.

Why a single button? So it basically forces them to go to Manage Subscriptions. It might read as a bit pushy, but I wanted to do everything technically possible to steer the user to cancel their subscription, now that they purchased Lifetime.

That sheet is SwiftUI's [`manageSubscriptionsSheet(isPresented:)`][sheet], and the app reads StoreKit again once it closes. Canceling in there isn't actually a transaction, so the app's [`Transaction.updates`][updates] listener (the stream StoreKit sends new and changed transactions to) never hears about it.

On the Mac, Continuum can't do all of this the same way (a menu item can't hold a note, and Apple's sheet only comes to macOS in 27.3), but it still gets there: it asks before the purchase, and its alert after sends them to the App Store's subscriptions page.

The alert only covers "Pay once instead", but Lifetime can also arrive in ways that never go through that sheet:

- bought on another device
- found by a [restore][sync]
- an "Ask to Buy" request, approved later on

I handle this scenario in Settings and with a badge.

## The warning in Settings

After they buy Lifetime, and for as long as the subscription is still ongoing, Settings leads with a Manage subscription row and a warning under it, while the Pro screen shows the same warning.

![Settings after buying Lifetime: Manage subscription, and the warning saying the subscription still renews][image-settings]

![The Pro screen, with the same warning under its rows][image-pro]

With Pro, Settings normally has nothing about it at the top, only the Weekly Gym Pro row further down; this is the one exception, since a charge is probably what they'd least want to miss and I want it to be obvious.

Settings sits behind the ··· menu of the main screen, so while the warning is up, the ··· carries a red badge, and inside the menu, so does the row Settings, in place of its usual icon. Both go away when the warning does.

![This week, with a red 1 on the ··· button][image-week]

![The ··· menu open, with a red 1 in place of Settings' gear][image-menu]

Which subscriptions can still charge them? Two kinds: one that's active and set to renew, and one in billing retry, so I wanted to treat both.

The warning names the day the subscription renews on, when there is one. In billing retry there's no renewal date to show, and in Apple's [grace period][churn] (the days a subscriber keeps access while a failed payment is retried, if the app turned that on) the date has already passed and would read as a mistake, so in both cases, the warning leaves the date out: "…and the App Store is still trying to renew it."

![Settings while the App Store retries the renewal: the same row, and the warning without a date][image-retry]

## The edge cases

What about a renewal that failed? Billing retry was the first edge case, and probably the easiest one to miss. When a renewal fails, the App Store [keeps trying to collect the payment for up to 60 days][churn], and once a retry goes through, it charges them, Lifetime purchased or not.

While it retries, the subscription gives no Pro, and [`Transaction.currentEntitlements`][entitlements] (the transactions that entitle the account to something right now) only lists subscriptions that are `subscribed` or `inGracePeriod`. If you only read that, you won't see it at all, so I read the product's latest transaction too:

```swift
var transactions: [Transaction] = []

for await result in Transaction.currentEntitlements(for: productID) { // ❶
   if case .verified(let transaction) = result {
      transactions.append(transaction)
   }
}

if case .verified(let latest) = await Transaction.latest(for: productID), // ❷
   !transactions.contains(where: { $0.id == latest.id }) {
   transactions.append(latest)
}
```

`currentEntitlements(for:)` (❶) leaves out a subscription in billing retry, but `latest(for:)` (❷) still returns its last transaction, and that transaction's `subscriptionStatus` says whether it's `.inBillingRetryPeriod`.

That means the check can't skip a subscription just because it gives no Pro; their _own_ one in billing retry counts too, as long as it would still renew.

Whether it would still renew comes from StoreKit's [`willAutoRenew`][autorenew], in the subscription's renewal info. It turns false as soon as they cancel, even while the current period still runs, so that's the flag the warning goes by.

If that renewal info fails verification, neither reading is really safe: as still renewing, the warning could nag them about a subscription they already canceled, and as not renewing, it could miss one that will charge them. In Weekly Gym, I went with the second, and the app logs it.

Then, Family Sharing, where the question is whose subscription it is. A subscription a family member shares with them isn't theirs to cancel (["You can't cancel a family member's subscription."][cancel]), so the warning shouldn't point at it.

If your products are family-shareable, be careful with this: check each transaction's [`ownershipType`][ownership], and leave out the ones that are `.familyShared`. Otherwise, the warning can ask someone to cancel a subscription they can't, and with 2 subscriptions, one shared and one their own, it might pick the wrong one.

It works the other way around, too. Say someone has Pro through their family, plus a subscription of their own from before they joined, which is now in billing retry. That one _is_ theirs and can still charge them, so they get the warning as well. They don't have Lifetime, though, so instead of "You already have Lifetime", the warning starts with the family: "Your family shares Weekly Gym Pro with you, but that didn't automatically cancel your own subscription…"

When does the warning go away? A cancel sends no transaction, so an app only sees it when it reads StoreKit again. Weekly Gym and [Digest][digest], both on iOS, read again every time they come back to the front, while Continuum reads at most once an hour, since a Mac app comes to the front on every app switch, which happens much more often than on iOS.

Is it overkill? Most of this is for cases that will rarely come up, and some of it should never fire at all, so yes. But every renewal someone forgets about after purchasing Lifetime, would still end up in my account, though, and that's not how I want to earn it.

In a world where you can be anything, be fair and kind.

[weekly-gym]: /projects/weekly-gym "Weekly Gym"
[digest]: /projects/digest "Digest"
[continuum]: /projects/continuum "Continuum"
[cancel]: https://support.apple.com/en-us/118428 "Cancel a subscription from Apple"
[sheet]: https://developer.apple.com/documentation/swiftui/view/managesubscriptionssheet(ispresented:) "manageSubscriptionsSheet(isPresented:)"
[updates]: https://developer.apple.com/documentation/storekit/transaction/updates "Transaction.updates"
[churn]: https://developer.apple.com/documentation/storekit/reducing-involuntary-subscriber-churn "Reducing Involuntary Subscriber Churn"
[entitlements]: https://developer.apple.com/documentation/storekit/transaction/currententitlements "Transaction.currentEntitlements"
[ownership]: https://developer.apple.com/documentation/storekit/transaction/ownershiptype-swift.property "ownershipType"
[autorenew]: https://developer.apple.com/documentation/storekit/product/subscriptioninfo/renewalinfo/willautorenew "willAutoRenew"
[image-alert]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/c7294f988ed518ff-lifetime-alert.png "The alert right after buying Lifetime"
[image-pro-row]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/40a22ced3f793706-settings-pro-row.png "The Weekly Gym Pro row in Settings"
[image-sheet]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/07a5fb808b5b44c2-pay-once-sheet-note.png "Pay once instead, before buying"
[image-paywall]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/72c1512b6e235560-paywall-billing-retry-note.png "The paywall, while the App Store retries the renewal"
[image-settings]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/6af5cd90715ffe6e-settings-warning-renews.png "Settings, while the subscription still renews"
[image-pro]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/6bb90cfc9d38f15c-pro-screen-warning-renews.png "The Pro screen, while the subscription still renews"
[image-week]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/401bf882f4b7e72d-this-week-badge.png "This week, while the subscription can still charge them"
[image-menu]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/b851a30979125b18-this-week-menu-badge.png "The ··· menu, while the subscription can still charge them"
[image-retry]: https://1b8s9qdvrd8l8jfm.public.blob.vercel-storage.com/posts/tech/lifetime-purchase-while-a-subscription-is-active/media/lifetime-purchase-while-a-subscription-is-active/0edadccee2ce6c1a-settings-warning-billing-retry.png "Settings, while the App Store retries the renewal"
[sync]: https://developer.apple.com/documentation/storekit/appstore/sync() "AppStore.sync()"
