◉RORK LABJP
●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
Articles/Dev Tools
⬡ Dev Tools/2026-04-28Advanced

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.

Family SharingAsk to BuyStoreKit 217IAP6Rork622Subscriptions17iOS118App Store93

✦ Premium Article

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.

TriggerNotification to expectServer action
Parent requests a refundREFUND for the purchaser, REVOKE for family membersRevoke the purchaser's entitlement and the shared members' entitlements
Sharing stopped / member leaves the groupREVOKE for the family memberRevoke only the entitlement of the member who lost sharing
Refund decided by AppleREFUNDRoute it through the same path, and log the count separately
Parent's payment failsDID_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.

or
Unlock all articles with Membership →
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.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-10-30
It runs in development but the iOS Release build dies on launch — checking whether a missing scheme is the cause
In an expo-router app, an app.json with no scheme can crash only the iOS Release build at launch. A triage table for Release-only crashes, how to read the reason from the log, why Debug and Android survive, the two fixes and why one needs a native rebuild, and a pre-submission check.
⬡ Dev Tools2026-09-21
A build that stops with exit code 0 — the flag that silenced the log, and the check that let an empty file through
Two reports landed in the same week: eas build --local stopping with exit code 0 but produced no further output, and a zero-byte stub that never got embedded. Both came down to settings that reduce output. Here is how to audit your own scripts.
⬡ Dev Tools2026-09-05
Your Widget Extension Can Submit a BGTaskScheduler Request. It Just Cannot Register the Handler
Calling BGTaskScheduler from a widget extension compiles, submits, and returns true — and then nothing runs. Here is why registration belongs to the host app only, and how I moved refresh ownership back where it belongs across my wallpaper apps.