Loading
Skip to case study

Case study

Pledge

An iOS app that blocks the apps that eat your time, with real money on the line if you unlock early. Keep your pledge and it costs nothing. Break it and you pay, and Pledge gives 60% of that payment to a charity you pick.

Role
Creator, design and engineering
Timeline
February to July 2024, version 2.0 in July 2026
Platforms
iPhone and iPad
$1–$100pledges, across 16 price points
4system extensions
12charities in Australia and New Zealand
0personal data collected

The idea

iPhone already has Screen Time limits, but they’re easy to wave away: one tap on “Ignore limit” and you’re back in. Nothing is lost by giving in.

We try harder to avoid a loss than to chase a reward.

Pledge makes giving in cost something. You set an amount you’d hate to lose, from $1 to $100. Keep the block and you pay nothing. To leave early you pay that amount, and the money does some good.

What it does

Three ways to block. Block now for a set time, on a schedule like 9 to 5 on weekdays, or once you hit a daily limit.
Set the stakes. Pick apps, categories or websites, how long to block them, and what it costs to quit early.
A reminder at the right moment. Opening a blocked app shows what’s on the line, when it unlocks and which charity gets the money.
Stay or pay. A live countdown, an early unlock at your pledge amount, and one free unlock a month for real emergencies.
Giving. See what Pledge has given on your behalf and where it went, plus totals across everyone using the app.

Also built: a Progress tab with streaks, time reclaimed and milestones; weekly and daily Screen Time insights; and an onboarding screen that draws where each dollar goes to scale (60% to charity, about 15% to Apple, the rest GST and running costs).

How it’s built

Pledge is a SwiftUI app (about 7,400 lines) plus four extensions that iOS runs on its own schedule, outside the app (about 1,500 lines). The extensions can’t talk to the app directly, so they share state through an App Group container. Nothing about the user leaves the phone; the backend only sees Apple’s purchase records.

Code I wroteService or platform

Pledge appSwiftUI MonitorStarts and ends blocks ShieldScreen on blocked apps ReportScreen Time insights
Shared containerApp Group BlockingFamilyControls, ManagedSettings, DeviceActivity PaymentsStoreKit 2
Purchase eventsApp Store Server Notifications VerifierVercel function LedgerCloudflare Worker and D1 Giving totalsStatic JSON
Apple sends a signed notification for every purchase and refund. A small function checks the signature and writes it to a ledger, which is used to work out what each charity is owed. The app reads only a public file of totals, so there’s no server that knows who asked.

Problems worth solving

No easy way out

A block is only worth something if it holds. While one is active, Pledge stops the blocked apps being deleted and requires automatic date and time, so changing the clock can’t end a block early.

Code that runs without the app

iOS wakes the monitor extension when a block starts, ends or hits a limit, and may deliver the same event twice, such as after a restart. Unlocks are stamped with an expiry so a repeated event never re-locks apps someone has paid to open.

A shield that argues back

The default block screen is generic. Pledge’s shield reads the shared container to show the biggest pledge still running, when the apps unlock, the streak at risk and the charity that would get the money.

Giving without tracking anyone

Each purchase carries a token that identifies the chosen charity, not the person. Apple’s signed records are verified and stored, refunds are taken off, and the App Store privacy label stays at “Data Not Collected”.

Never losing a paid unlock

Purchases can finish outside the normal flow, like Ask to Buy approvals or a payment cut off mid-way. Those are caught when they arrive and passed to the countdown, so a paid unlock always goes through and a refunded one never does.

Getting through App Review

Version 1 took payments through Stripe, but an early unlock is a digital purchase, so I rebuilt it on in-app purchase. The giving wording had to make clear Pledge donates in its own name, not collect donations. Apple also wouldn’t let me drop iPad.

Two versions, two years apart

I built the first version between February and July 2024 to learn Apple’s Screen Time APIs, and shipped it to the App Store that July. In July 2026 I came back to it for version 2.0:

  • A redesigned app with the Progress and Giving tabs, and a shield that shows the stakes.
  • Charity giving backed by a purchase ledger, with 12 charities to choose from across Australia and New Zealand.
  • screentime-pledge.com, the marketing site with support, privacy and terms pages.