How I'm planning offline mode for matchday in FUTZ.PRO
Dec 2, 2026 • 7 min read Status: in progress
FUTZ.PRO is an iOS and Android app that amateur football groups use to run their weekly games: the list, attendance, teams, goals and stats. More than 400 groups use it.
Mobile
Offline-first
Sync
React Native
Product Analytics
System Design
Most screens get used at home, on Wi-Fi. Matchday is different. The organizer is at the pitch, marking who arrived and adding goals during the game, and pitches often have bad signal.
This article covers what I decided to make work offline, what I kept online, and how a change made with no signal reaches the server without being applied twice.
Status: in progress. Nothing here has shipped yet. I'm building the measurement first and will update this page as each part ships.
The problem
Right now the app notices when you're offline and shows a message. That doesn't help an organizer with players arriving and no signal. They wait, or they write it on paper and type it in later, and some of it never makes it into the stats.
Making the whole app work offline was the obvious move. I decided against it for two reasons.
Some actions can't be safely sent twice. When the connection drops mid-request, the phone can't tell if the server got it, so it retries. Marking a player present twice is harmless if the server handles it. Charging a monthly fee twice, or drawing teams twice, is not.
Each offline action takes work. It needs a saved copy, a queue, retry rules and a plan for conflicts. Screens people use on Wi-Fi don't need any of that.
So I limited it to matchday, and to what the organizer does at the pitch.
What goes offline, and what doesn't
Works offline
Stays online, on purpose
Opening a matchday you've visited before
Finances and payments
Marking a confirmed player present
Drawing teams
Recording goals and other match events
Creating or finishing a match
Confirming or leaving the list
The right column stays online on purpose. Those actions move money or set off other changes, like moving someone up from the waiting list. A "needs connection" message is better than running them twice.
Step one: measure before building
I don't actually know how often people lose signal at the pitch. It's a guess, so I'm measuring it before building anything.
The first change adds two analytics events, app went offline and app back online. They record the screen the person was on and, when they come back, how many seconds they were offline. They send no IDs or location. With that I can see:
How often people lose connection, and on which screens.
How long the gaps last. A ten-second gap only needs a retry. A ten-minute gap needs a real offline mode.
Whether the drops happen on matchday screens or all over the app.
If drops on matchday turn out to be rare, the plan gets smaller. If they're common, I'll have a number to compare against once offline mode ships.
How a tap with no signal reaches the server once
There are three parts: a copy of the matchday saved on the phone, an outbox for changes, and a server that can tell when it has already seen a change.
1. A local copy, so the matchday opens anyway
When you open a matchday with signal, the app saves the players, the list and the events on the phone. Next time, it shows the saved copy first and updates it when it can. With no signal, you still see the matchday.
The copy goes in the key-value storage the app already uses, not a new database. With no new native module, each step can ship as an over-the-air update instead of waiting on an App Store review.
2. An outbox, so every tap is kept
When the organizer marks someone present with no signal, the screen updates right away and the change goes into an outbox. The phone gives each change its own operation ID, and a small "Waiting to send" badge shows it hasn't reached the server yet. I care most about that badge. If the app looks saved when it isn't, people stop trusting it.
Once the signal is back, the outbox sends changes oldest first, one matchday at a time. If a send fails, the app waits about a second and tries again, waiting longer each time, up to about two minutes.
1. Opens matchdayLoads from the local copy. PostHog logs "went offline" + screen.
2. Marks present, adds a goalScreen updates at once. Each write joins the outbox.
3. Shows "Waiting to send"A small badge so nobody thinks it's saved yet.
4. Signal returnsOutbox sends in order. PostHog logs "back online" + seconds offline.
5. Server confirmsBadge clears. A lost reply and a retry still count once.
What the organizer sees, step by step.
3. A server that recognizes a repeat
Every retry of a change carries the same operation ID. The server saves the change and a receipt for that ID in one database transaction. If the same ID comes in again, because the reply got lost or the phone retried, the server sends back the saved result and doesn't apply the change again.
So the phone can retry as many times as it needs to, and each change still counts once.
When the phone and the server disagree
Two organizers can edit the same matchday while one of them is offline. Attendance, events and the score each follow a different rule:
AttendanceSent with the version it saw. If someone changed it meanwhile, the server's answer wins and the phone refreshes.
Match eventsIf the server rejects one (match finished, player removed), it stays on the phone as "Needs review".
ScoreNever sent on its own. Always added up from the events, so it can't drift.
Each kind of data has its own rule for conflicts.
Build order
Building nowMeasure how often and where people lose connection (FUT-175)
Open a visited matchday with no signal (FUT-176)
Make "mark present" safe to re-send on the server, then mark present offline (api#323, FUT-177)
Make a match event and its score save together, once, then record events offline (api#324, FUT-178)
Stays online-only: finances, payments, team draws, creating or finishing matches, list confirmations.
The four steps in order, with the tickets for each.
Each step can ship by itself and is useful even if I stop there.
What I've learned so far
Plan around where the person is. The useful question wasn't which screens could work offline. It was what the organizer needs to do at the pitch when the signal drops.
The receipt on the server matters most. People see the saved copy and the outbox. The receipt is what stops a retried change from counting twice.
It doubled as an audit. Asking whether each write in the app was safe to send twice turned up problems I'd fix even if offline mode never ships.
I'll add the real numbers and screenshots as each step goes live.