Build purchases on StoreKit 2 and Play Billing, without RevenueCat
Context and problem
The apps will sell one thing: a $2.99 non-consumable “Remove ads” per game app, with Family Sharing on (ads plan, decisions 4 to 7). Something must buy it, tell at launch whether the player owns it, restore it, notice refunds, and later share it across platforms through the Homefelt account. The apps keep side effects behind protocols with fakes in tests (AGENTS.md), and the privacy page today names no third party for purchases.
Options considered
- Build it in. StoreKit 2 on iOS and the Play Billing Library on Android behind a
Storeprotocol; our Rust server verifies purchases for signed-in players. No new SDK or third party. - RevenueCat. Its SDK on both apps and its servers hold entitlements. Free up to $2,500 of monthly tracked revenue, then 1%. Strongest at subscriptions, paywall experiments and dashboards.
Decision
We chose option 1, as Eduardo decided on 2026-11-25. Every job a single non-consumable needs has
a platform API (purchase, currentEntitlements, AppStore.sync(), Family Sharing as a product
setting, refunds dropping out of entitlements, Play acknowledgement within three days), and the job
neither does alone, cross-platform entitlement, is our server’s either way. The job-by-job table is
in section 6 of the plan.
We reconsider RevenueCat when any one of these becomes true:
- we add a subscription (for example a Homefelt membership across games);
- we sell several products or bundles (for example an all-games pack);
- we want price or paywall experiments;
- maintaining the purchase code or the server verification costs more than about a day a month.
The three-month ads review (#241) is the point to check them.
Consequences
Good
- No new SDK, no third party seeing purchases, nothing new on the privacy labels for purchases.
- Fits the architecture:
StoreandEntitlementStatewith fakes, so a switch later is one moreStoreimplementation, not a rewrite. - No revenue share beyond the stores’.
Bad
- We own the edge cases (cancelled, pending, Ask to Buy, offline, refunds, Family Sharing revokes) as tests, and later the server verification with the App Store Server API, Notifications V2, the Play Developer API and RTDN.
- No ready-made revenue dashboard; the stores’ reports stand in.
More information
- Plan: Ads and the remove-ads purchase, decision 6 and section 6.
- Issues: #237 (iOS), #238 (Android), #240 (cross-device), #241 (review).