●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
Why In-App Purchases Disappear with Family Sharing — Building Bulletproof IAP for Family Apps with Rork
Subscription revenue from Family Sharing purchases can vanish days after the sale settles. This guide covers the four refund triggers, a StoreKit 2 + Server Notifications V2 implementation for Rork apps, and a StoreKit Testing matrix that catches family edge cases before launch.
Open the App Store Connect revenue dashboard and find that several monthly charges which clearly settled the day before are quietly missing from the totals — in a kids' subscription app, that is exactly what Family Sharing can do.
The first suspicion is ordinary cancellation. But open a dashboard like RevenueCat's and you may find those entries sitting in the Refunded state, almost all of them Family Sharing purchases.
The pattern is the same each time. A child account triggers a purchase, the parent approves it through Ask to Buy, and days later the parent contacts App Store support and says the charge is unfamiliar. Apple refunds the purchase at its discretion. Your server has already granted the entitlement and the user has been consuming premium content, so you only notice in the weekly aggregation report.
If you ship a subscription on iOS without understanding how Family Sharing and Ask to Buy interact with StoreKit, you will eventually hit this pattern. We'll walk through the four ways Family Sharing can erase revenue you thought was already in the bank, plus implementation patterns for Rork-built apps, anchored in code examples and Apple's official documentation. In payment design, I think the starting point is to count the routes by which revenue might disappear before you count the revenue itself.
"She bought it yesterday, but today it's gone" — when Family Sharing refunds happen
Family Sharing lets a purchaser and up to five family members share eligible in-app purchases. It is a well-loved feature, but it comes with behaviors that don't exist for solo subscriptions.
Even when a child account makes the purchase, the charge goes to the purchaser's payment method (usually a parent's)
A parent can contact App Store support after the fact and ask for a refund on a purchase they don't recognize
A product with Family Sharing enabled is usable by the whole family, not just the buyer
When the purchaser stops sharing, or someone leaves the family group, family members lose access to the shared purchase
So "settled revenue" is not actually settled. A refund or an unshared purchase can flip a transaction days or weeks later. If your server granted the entitlement on purchase and never reconciles afterward, your view of who is entitled drifts away from Apple's. You end up with people who no longer pay but keep premium access, while paying family members get locked out at unpredictable moments.
Checking a single purchaser in the sandbox and concluding "the payment sheet opened and a receipt came back, so we're fine" is the easiest trap to fall into. Apple's "Testing Family Sharing" documentation describes Sandbox Test Families — groups of sandbox Apple Accounts — that let you reproduce both a family member gaining access and losing it. The steps are in a later section.
The four triggers that erase Family Sharing IAP revenue
It helps to sort the "disappearing revenue" scenarios into four buckets.
The first trigger is a parent-initiated refund after Ask to Buy. The child requests a purchase, the parent approves it, and a few days later the parent contacts App Store support saying the child bought something they didn't intend. Apple grants the refund at its discretion, and the purchaser's side receives REFUND. In Apple's notification table, REFUND goes only to the purchaser, while family members who were sharing the purchase receive REVOKE.
The second trigger is stopping sharing or leaving the family group. When the purchaser stops sharing the purchase, or the purchaser or a family member leaves the group, the shared purchase is taken away from the family members. The subscription itself keeps renewing for the buyer, so this is not an EXPIRED event — a REVOKE arrives for the affected family member. Per Apple's description, REVOKE is not sent to the purchaser.
The third trigger is a refund Apple decides on its own. A user files a request, Apple reviews it, and the refund lands without any prior check with you as the developer. It isn't unique to Family Sharing, but in apps where a child's taps can turn into purchases, it is a path worth planning for.
The fourth trigger is billing problems on the parent's payment method. When the parent's card expires or is declined, the renewal fails and the subscription enters the billing retry period. DID_FAIL_TO_RENEW is sent for both the purchaser and family members; a GRACE_PERIOD subtype means a grace period is active, and an empty subtype means there is none. To the end user it looks like "my access is gone because of someone else's card," which is confusing.
Here are the four triggers and what the server should do about each, on one page.
Trigger
Notification to expect
Server action
Parent requests a refund
REFUND for the purchaser, REVOKE for family members
Revoke the purchaser's entitlement and the shared members' entitlements
Sharing stopped / member leaves the group
REVOKE for the family member
Revoke only the entitlement of the member who lost sharing
Refund decided by Apple
REFUND
Route it through the same path, and log the count separately
Parent's payment fails
DID_FAIL_TO_RENEW (check the subtype)
Keep access while the subtype is GRACE_PERIOD; if it is empty, decide to stop service
Revenue is settled not on the day it arrives, but on the day you can confirm Apple won't take it back — that is the line I design from.
Handled one by one on the client, these four triggers fragment quickly. Reconciling every Family Sharing state change server-side through Server Notifications V2 gives the decision a single home. The StoreKit 2 client serves the UX; the server is the single source of truth for who is entitled.
✦
Thank you for reading this far.
Continue Reading
What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.
WHAT YOU'LL LEARN
✦Identify the four ways Family Sharing silently strips revenue from your subscription numbers, and bake the defenses into your design before launch
✦Implement Family Sharing and Ask to Buy detection across StoreKit 2 on the client and App Store Server Notifications V2 on the server with production-ready code
✦Reproduce approvals, rejections, family departures and refunds with StoreKit Testing, so the rough edges are smoothed before you ship
Secure payment via Stripe · Cancel anytime
✦
Unlock This Article
Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.
Configuring Family Sharing for your products in App Store Connect
Before any client-side work, you have to enable Family Sharing on the product itself in App Store Connect. Without this step, even a flawless StoreKit implementation won't share the entitlement.
In the In-App Purchases page, open each eligible product and toggle the Family Sharing section to on. The product types that support Family Sharing are:
Auto-renewable subscriptions
Non-consumable items
Consumable items (like coin packs) and non-renewing subscriptions cannot be shared. If your indie app is family-oriented and you want a "family plan," you almost always want an auto-renewable subscription with Family Sharing enabled.
A critical caveat: once you enable Family Sharing on a product in App Store Connect, you cannot turn it off later (App Store Connect Help says so explicitly). The decision belongs at the product-design phase, before launch, not after you've seen the first month's revenue. Individual purchasers, on the other hand, can switch sharing off for their own purchase in their subscription settings at any time. The first is a product-design decision; the second is a source of the REVOKE notifications described earlier.
A note on pricing. Family Sharing means one purchase entitles the whole household, so per-user ARPU drops in proportion to the family size. Say you enable Family Sharing on a ¥500/month plan and assume the average household has 2.7 active users (a figure chosen to make the arithmetic easy to follow, not a measurement): effective revenue per person falls to about ¥185. Build that into the plan from the start — raising the headline price, or offering a separate solo plan beside the family one — and you won't be scrambling after launch.
A mental model worth keeping on a sticky note while designing pricing: Family Sharing is a "charge the whole household" strategy, not a "maximize per-user revenue" strategy. If you're not aligned on which game you're playing, you'll be tempted to "turn off Family Sharing" after launch — which, again, you cannot do.
There's also a marketing dimension that's easy to underweight. A family-shareable plan can feel like better value at the same headline price, because one charge covers the whole household. Treat that as a hypothesis to test in your own funnel rather than a promise.
The trade-off shows up later, in churn. When the buyer cancels, every member sharing that subscription loses access at once, so churn events are lumpier than for independent subscribers. If a lot of family-shared revenue is concentrated in a few buyers, an unlucky month can swing the numbers.
Detecting Family Sharing transactions in StoreKit 2
On the client, StoreKit 2's Transaction exposes an ownershipType property that tells you whether the user owns the purchase directly or received it via Family Sharing. Here's a reference implementation. It listens for transaction updates from app launch and reconciles each one with the server.
import StoreKitfinal class PurchaseManager: ObservableObject { @Published var isFamilyShared: Bool = false @Published var isPremium: Bool = false private var updateListenerTask: Task<Void, Error>? init() { // Subscribe to Transaction.updates from app launch so we don't miss // family-sharing grants and revocations that happen mid-session. updateListenerTask = listenForTransactions() } deinit { updateListenerTask?.cancel() } /// Expected behavior: this stream fires the moment Family Sharing grants, /// revokes, or refunds happen while the app is in memory. Existing /// entitlements on cold start should be loaded separately via /// Transaction.currentEntitlements. private func listenForTransactions() -> Task<Void, Error> { Task.detached { [weak self] in for await result in Transaction.updates { guard let self else { return } guard case .verified(let transaction) = result else { // Tampered transactions: do not finish; ignore. continue } await self.handleTransaction(transaction, jws: result.jwsRepresentation) await transaction.finish() } } } private func handleTransaction(_ transaction: Transaction, jws: String) async { let isFromFamily = transaction.ownershipType == .familyShared await MainActor.run { self.isFamilyShared = isFromFamily // A non-nil revocationDate means a refund or family departure // already invalidated this transaction. self.isPremium = transaction.revocationDate == nil } // Server is the source of truth — send the signed JWS string // (VerificationResult.jwsRepresentation) for cross-checked verification. do { try await PremiumServerClient.shared.verify(jws: jws) } catch { // On network failure keep the local state and re-verify next launch. print("server verify failed: \(error.localizedDescription)") } }}
Three things matter in this implementation. First, the Transaction.updates listener runs from app launch, so any Family Sharing event during the session — a parent approving an Ask-to-Buy in another room, a member leaving the family — flows through immediately. Second, ownershipType lets us distinguish "this user bought it" from "this user is on a shared subscription," which lets the UI show a "Family plan member" badge or, more importantly, hide cancel-management UI from users who can't actually cancel. Third, revocationDate is checked so we catch the case where the transaction was already revoked when we received it.
One more detail: what you send to the server is result.jwsRepresentation, the signed JWS string. transaction.jsonRepresentation is unsigned JSON Data and can't be used for signature verification on the server. The code in this article illustrates the structure and has not been executed in this environment, so check the types and behavior against your SDK version before adopting it.
What you should not do is treat the StoreKit 2 layer as authoritative for entitlement. Events that happen while the app is closed — a parent requesting a refund overnight, an Apple auto-refund — never reach the device until you re-fetch. The server is the only authority. The client uses StoreKit to keep the UX fresh, not to grant access.
Handling Ask to Buy correctly
When a child account on a Family Sharing plan tries to buy something, Ask to Buy intercepts the flow. From StoreKit's perspective, the result of Product.purchase() falls into one of three branches:
.pending — waiting for the parent to approve. The transaction is not yet final.
.success(.verified(transaction)) — the parent approved and the transaction is finalized.
.userCancelled — the child dismissed the purchase sheet.
The most common implementation bug is treating .pending like a successful purchase. If you grant the entitlement on .pending and the parent later denies the request, you end up with double-grants and angry users. That bug leads to double grants, or to users staying premium after a parent has declined.
Here's the correct pattern.
func purchase(_ product: Product) async throws -> PurchaseResult { let result = try await product.purchase() switch result { case .pending: // Awaiting parental approval. The UI should sit in // an "asking your parent" state. Do NOT grant entitlement here. // The Transaction.updates stream will deliver the approved // transaction when (and only if) the parent approves. return .awaitingApproval case .success(let verification): guard case .verified(let transaction) = verification else { // JWS verification failed — possible tampering. throw PurchaseError.unverified } await transaction.finish() return .completed(transaction) case .userCancelled: return .cancelled @unknown default: // Defensive default for future StoreKit additions. return .unknown }}
The key is that .pending puts the UI into a holding state — "waiting for a parent to approve" — without granting access. Approval, if it comes, arrives later through Transaction.updates, where the server-verification path runs and entitlement is finally granted.
For UX, store the pending product ID in UserDefaults so the user can quit the app and come back later without losing the in-flight request. On next launch, Transaction.currentEntitlements reconciles whatever happened in the meantime.
Server-side verification: handling Family Sharing in Server Notifications V2
If the client is the only thing tracking entitlement, you'll lose every event that happens while the app is closed. App Store Server Notifications V2 is Apple's server-to-server feed for everything subscription-related — renewals, refunds, family-related changes — and it's the right place to make entitlement decisions.
The notifications most relevant to Family Sharing are:
SUBSCRIBED — a first subscription or resubscription; it is also sent for each family member who gains access through sharing after the purchaser subscribes
DID_RENEW — a renewal succeeded
REFUND — a refund settled; in Apple's table it goes to the purchaser
REVOKE — a family member lost access through sharing (sharing stopped, a group departure, or the purchaser's refund); it is not sent to the purchaser
DID_FAIL_TO_RENEW — the parent's payment method failed; a GRACE_PERIOD subtype means a grace period is active
EXPIRED — the subscription expired naturally
For a shared non-consumable, the notification for a family member gaining access is ONE_TIME_CHARGE. The code below targets auto-renewable subscriptions; add a branch for that type if you also handle non-consumables.
Below is a Cloudflare Workers endpoint that can serve as the server-side verification surface for Rork-built apps. It reconciles each notification into a single KV record per user.
import { jwtVerify, importJWK } from 'jose';interface Env { KV_PREMIUM: KVNamespace; APP_STORE_BUNDLE_ID: string;}export default { async fetch(request: Request, env: Env): Promise<Response> { if (request.method !== 'POST') { return new Response('method not allowed', { status: 405 }); } const body = await request.json<{ signedPayload: string }>(); const payload = await verifyAndDecodeJWS(body.signedPayload); // Expected behavior: REFUND/REVOKE pulls the entitlement immediately. const { notificationType, subtype, data } = payload; const transactionInfo = await verifyAndDecodeJWS(data.signedTransactionInfo); // Grace-period details live in signedRenewalInfo, not in the transaction. const renewalInfo = data.signedRenewalInfo ? await verifyAndDecodeJWS(data.signedRenewalInfo) : null; const userKey = `user:${transactionInfo.appAccountToken}`; switch (notificationType) { case 'DID_RENEW': case 'SUBSCRIBED': await env.KV_PREMIUM.put(userKey, JSON.stringify({ status: 'active', ownershipType: transactionInfo.inAppOwnershipType, // FAMILY_SHARED or PURCHASED expiresAt: transactionInfo.expiresDate, })); break; case 'REFUND': case 'REVOKE': // Family departure or refund — revoke immediately. await env.KV_PREMIUM.put(userKey, JSON.stringify({ status: 'revoked', revokedAt: Date.now(), reason: notificationType, })); await notifyClientToRevalidate(userKey); break; case 'DID_FAIL_TO_RENEW': if (subtype === 'GRACE_PERIOD') { // Parent payment failed but a grace period is active. // Keep the entitlement and notify the user without scaring them. await env.KV_PREMIUM.put(userKey, JSON.stringify({ status: 'grace_period', retryUntil: renewalInfo?.gracePeriodExpiresDate, })); } else { // Empty subtype = billing retry with no grace period. Stop service. await env.KV_PREMIUM.put(userKey, JSON.stringify({ status: 'billing_retry' })); } break; case 'GRACE_PERIOD_EXPIRED': // The grace period ended; only billing retries continue. await env.KV_PREMIUM.put(userKey, JSON.stringify({ status: 'billing_retry' })); break; case 'EXPIRED': await env.KV_PREMIUM.delete(userKey); break; } return new Response('ok', { status: 200 }); },};async function verifyAndDecodeJWS(jws: string): Promise<any> { // WARNING: simplified for illustration. This reads the payload without // verifying the signature, so do not ship it as-is. // In production, validate the x5c chain up to Apple's Root CA // (for example with Apple's app-store-server-library). const [, payload] = jws.split('.'); const json = atob(payload.replace(/-/g, '+').replace(/_/g, '/')); return JSON.parse(json);}async function notifyClientToRevalidate(userKey: string): Promise<void> { // Push a silent APNs message asking the client to re-fetch entitlement // on the next foreground.}
The core idea is: the moment a REFUND or REVOKE arrives, KV is updated and the user is no longer entitled on the next API request. For a Family Sharing departure, revoke only the departing member's entitlement and leave the buyer's and other members' records alone. And do not skip signature verification: unsigned, unchecked payloads would let anyone forge a notification and rewrite your entitlements.
The thing that trips people up here is appAccountToken. It's a UUID the client passes into StoreKit at purchase time to tie the purchase to your own user. Don't assume the same value is attached to the entitlement a family member receives on their device. Rather than keying KV on appAccountToken alone, keep a server-side mapping between originalTransactionId and your own user ID, so each notification can be resolved from either side. Check the exact behavior against your SDK version and Apple's documentation.
RevenueCat: convenient abstractions, with Family Sharing-specific quirks
RevenueCat absorbs most of this server-side work, but Family Sharing has a few behaviors worth flagging.
You can tell whether an entitlement came from Family Sharing through customerInfo.entitlements.active[id].ownershipType (types and values can change between SDK versions, so confirm in your own project). Use that to branch the UI: show a "Family plan member" badge and point the cancel call-to-action at "the purchaser manages this subscription." It keeps members from assuming they are being charged for something they never bought, which is a common source of low ratings.
A subtle one: for Family-Shared entitlements, EntitlementInfo.willRenew may not reflect the family member's reality, because the buyer's autopay decision isn't visible from the member's side. Values can change between SDK versions, so confirm what you actually get. If you build "stop auto-renew" UI, branch it on ownershipType == .familyShared and don't show the toggle to family members — it would be a no-op for them and only causes confusion.
For RevenueCat webhooks, always check the payload itself to tell whether an event belongs to the buyer or to a family member. Field names get updated, so build the branch while looking at the latest official docs and samples. Routing cancellations judged to be family-derived to a separate Slack channel, instead of the buyer-facing cancellation funnel, makes a sudden increase easy to notice.
If you're weighing RevenueCat versus self-hosting Server Notifications V2, the answer is mostly about your monthly recurring revenue. Once RevenueCat's per-MRR fee starts feeling expensive, the self-hosted Server Notifications V2 guide walks through the full migration.
Implementation pitfalls that are easy to hit
Here are four pitfalls that are easy to land in when shipping Family-Sharing-aware apps. Knowing them up front can save days of debugging.
Pitfall 1: showing buyer-style UI without checking ownershipType. Family members see a "manage your subscription" page as if they had bought it, try to cancel, and confusion follows. Branch on ownershipType == .familyShared and replace the management UI with "You're on a family plan. Manage it from the original buyer's account."
Pitfall 2: shipping without ever reproducing the family branches. Flipping one sandbox Apple ID back and forth never walks through the Family Sharing or Ask to Buy paths. Skip that and you learn about the edge cases through App Store reviews. The next section covers how to reproduce them.
Pitfall 3: starting Transaction.updates too late. If you attach the listener inside an onAppear, you miss transactions that arrive before the screen mounts. Start the stream in your @main App initializer or application(_:didFinishLaunchingWithOptions:) so it is listening from the moment the process is alive.
Pitfall 4: REFUND arrives at the server but the client UI still shows premium. Revoking entitlement in KV doesn't help if the client is reading a stale cached response. After receiving REFUND or REVOKE, push a silent APNs message to the client (or invalidate via ETag) so it refetches entitlement on next foreground.
All four are cheap to prevent with a pre-launch checklist. Family Sharing is attractive as a feature, but budget for more edge-case work than a plain solo subscription needs.
Reproducing the family branches before launch
Building a real family group on devices takes effort and is hard to reset to the same state every time. A two-stage approach works well: reproduce every branch with StoreKit Testing in Xcode first, then confirm real signatures and notifications with Sandbox and TestFlight.
In StoreKit Testing, you can mark a product in the StoreKit configuration file as Family Sharing eligible. The Transaction Manager lets you approve or decline pending purchases, refund, and revoke entitlements from your desk. Where you switch on Ask to Buy varies by Xcode version, so follow the current official documentation.
Family sharing itself can be verified with a Sandbox Test Family. Following Apple's "Testing Family Sharing," the steps are:
Prepare two or more sandbox Apple Accounts and create a Sandbox Test Family in App Store Connect
Buy a shareable product with the purchaser's account
Open the app with another family member's account and confirm a transaction arrives with ownership type familyShared
To test revocation, open Settings > Developer > Sandbox Apple Account > Manage > Family Sharing on iOS, pick the member, and tap "Stop Sharing Purchases." Apple explains that in the test environment this is equivalent to the member leaving the group
Open the app as that member and confirm an updated transaction carrying revocationDate and revocationReason arrives. With Server Notifications V2 enabled in the sandbox, your server receives REVOKE
Apple also notes that changes to product metadata in App Store Connect can take up to an hour to appear in the sandbox, so don't panic if a fix doesn't show up right away.
On the server side, use the App Store Server API's request-a-test-notification endpoint to confirm that notifications reach your endpoint. Once signature verification is in place, send both a valid notification and a deliberately broken one, and check that the broken one is rejected.
These are the four scenarios to run before every release.
Scenario
Action
What to verify
Approval
Child requests, parent approves
The transaction arrives via Transaction.updates and the server grants the entitlement
Rejection
Child requests, parent declines
The .pending UI clears and no entitlement is granted
Sharing stopped / departure
Tap "Stop Sharing Purchases" in the Sandbox Test Family
Only that member's entitlement is revoked, and REVOKE arrives
Refund
Trigger a refund in Transaction Manager
The server handles REFUND, and the client display refreshes
Those four catch most of the gaps in an implementation. What remains — retries after network drops, delayed delivery on Apple's side — only shows up in production, so plan to cover it with post-launch monitoring.
Monitoring entitlement drift after launch
Once your app is live with Family Sharing enabled, watch the gap between "active subscribers per Apple" and "users with active entitlement on your server" at a regular interval. If your implementation is healthy, the two numbers sit close together. A widening gap usually means a notification handler is failing, or the mapping between appAccountToken / originalTransactionId and your user IDs has drifted.
For Apple's side, the subscription reports in App Store Connect's Sales and Trends are a starting point (check the official docs for how to retrieve them). On your side, count the "active" records in KV. Post the diff to Slack or similar, and decide your tolerance up front for your app's size — without a threshold, you can't tell when to act. If detection slips to the monthly report, you only find out once it shows up as support tickets or refund requests, so a daily check ends up being the cheapest option.
The second metric is the count of REVOKE events by ownershipType. Family-shared REVOKE events follow how often families reorganize, so they should be low and slow. A sudden spike suggests something in your client UI is nudging people to stop sharing by mistake. Often a confirmation dialog ("You'll lose access immediately") is enough, but you can only see the spike if you plot the trend.
The third is the share of .pending purchase requests that never resolve: a child asks, and the parent neither approves nor declines. If that share stays high, the Ask to Buy notification path has friction — the parent may not be receiving the notification, or your product description may be too long to read on the approval sheet.
Finally, watch DID_FAIL_TO_RENEW. If it clusters at particular times, such as month-end, payment methods are expiring in bunches. An in-app banner saying the family plan's payment method needs attention, with a deep link into the iOS subscription management screen, cuts down on one-star reviews nobody can explain.
If Server Notifications V2 is already implemented, the dashboard is a small job: a script that compares KV with the sales report numbers is a workable first version.
Pre-launch checklist
Before flipping the switch on your Family-Sharing-aware product, walk through this list once.
The product is Family Sharing-enabled in App Store Connect (it can't be turned off afterward)
The product is an auto-renewable subscription or non-consumable (consumables and non-renewing subscriptions are not eligible)
StoreKit 2's Transaction.updates listener starts at app launch, not in a view's onAppear
UI branches on ownershipType == .familyShared and hides cancel/management surfaces for family members
Product.purchase() returning .pending is treated as "waiting for approval," never as a completed purchase
The server receives App Store Server Notifications V2 and revokes entitlement on REFUND and REVOKE
DID_FAIL_TO_RENEW keeps or stops access depending on whether the subtype is GRACE_PERIOD
The client is invalidated after REFUND or REVOKE (silent APNs or ETag) so it cannot keep using a stale cached entitlement
The four scenarios — approval, rejection, sharing stopped, refund — have all been run end-to-end in StoreKit Testing and a Sandbox Test Family
Your Server Notifications V2 endpoint is configured separately for sandbox and production
Receipt and refund-related emails to the parent are localized correctly
Make it a standing pre-release step and re-run it whenever you add a feature; gaps become easier to spot.
Open App Store Connect and check whether your live subscriptions have Family Sharing enabled. If they do, and your server-side code grants entitlement based on a verified transaction without checking ownershipType or appAccountToken, you almost certainly have a small but ongoing leak of "ghost premium" users in your data. Adding the .familyShared branch and the REVOKE handler today is one afternoon of work that pays back as soon as your next family member leaves the group.
When a family member leaves, only that person's access should quietly disappear — I design the server so that single point holds.
Share
Thank You for Reading
Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.