Two phones on a night pitch. Before: offline, with two changes waiting to send. After: the same matchday list, synced, with all changes saved. 20:41 No signal Thursday match 7 confirmed Offline · 2 changes waiting to send A Ana B Bruno C Caio D Davi E Edu F Felipe 20:41 Thursday match 7 confirmed All changes saved A Ana B Bruno C Caio D Davi E Edu F Felipe
‹ Back Home

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.


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.

So I limited it to matchday, and to what the organizer does at the pitch.

What goes offline, and what doesn't

Works offlineStays online, on purpose
Opening a matchday you've visited beforeFinances and payments
Marking a confirmed player presentDrawing teams
Recording goals and other match eventsCreating 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:

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.

20:41 No signal Thursday match 7 confirmed A Ana B Bruno C Caio D Davi E Edu F Felipe G Gabi 1. Opens matchdayLoads from the local copy. PostHog logs "went offline" + screen.
20:41 No signal Thursday match 7 confirmed A Ana B Bruno C Caio D Davi E Edu F Felipe G Gabi 2. Marks present, adds a goalScreen updates at once. Each write joins the outbox.
20:41 No signal Thursday match 7 confirmed 1 change waiting to send A Ana B Bruno C Caio D Davi E Edu F Felipe G Gabi 3. Shows "Waiting to send"A small badge so nobody thinks it's saved yet.
20:41 Thursday match 7 confirmed Sending… A Ana B Bruno C Caio D Davi E Edu F Felipe G Gabi 4. Signal returnsOutbox sends in order. PostHog logs "back online" + seconds offline.
20:41 Thursday match 7 confirmed A Ana B Bruno C Caio D Davi E Edu F Felipe G Gabi Saved 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:

D Davi · present (v3) server wins, phone refreshes D Davi · removed (v4) AttendanceSent with the version it saw. If someone changed it meanwhile, the server's answer wins and the phone refreshes.
Goal · Edu · 14' Needs review Match eventsIf the server rejects one (match finished, player removed), it stays on the phone as "Needs review".
Ana · Black Bruno · Black Edu · White 2 – 1 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

  1. Building nowMeasure how often and where people lose connection (FUT-175)
  2. Open a visited matchday with no signal (FUT-176)
  3. Make "mark present" safe to re-send on the server, then mark present offline (api#323, FUT-177)
  4. 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

I'll add the real numbers and screenshots as each step goes live.

‹ Back Home