Snap Golf and Fora Soft logos

iOS app for recording and analyzing golf technique

Published: Oct 19, 2026
Snap Golf sign-in screen with a golfer's traced swing, next to the recording details screen with player tabs and a hole 1 video
Snap Golf recording screens: Maria's turn timer with recording in progress and a 20-second countdown before the next turn
Snap Golf video player with split-screen swing videos, the traced ball flight and a launch monitor display
Snap Golf is an iOS golf training app that turns the cameras installed on a golf course into a self-service video recording service. One player pays in the app and scans a QR code at the tee box, and each recorded player gets videos of their own shots from the cameras at the hole. We built the iOS app and the server side on Node.js.
For a golf club, Snap Golf is an extra paid service that needs no staff member at the tee. Group play is paid per recorded player, and a driving range session has a fixed price. The app competes in the golf tech market alongside apps like Swing Replay and SwingFeed.
Snap Golf platform diagram: club IP cameras stream over RTSP, the server records them, the leader's phone works as a remote control, and each recorded player gets videos

How the platform works

The system works like this: the club's cameras stream video over the network, the server records them, and one phone (the group leader's, or the solo player's on the driving range) works as a remote control that tells the server when each player's turn starts and ends. An earlier version processed video on the iPhone and took payments through Stripe. The first App Store release records on the server and uses in-app purchases.

The hardest part of the product is that a round lasts for hours outdoors. A phone gets locked, loses its connection, or shuts down, while recordings, timers, and payments have to stay in step.

Who uses the platform

  • Players go around the course in groups of up to four. One of them, the group leader, sets up the session on their phone and pays for the players who are recorded. On the driving range, one player records a solo 12-minute session.
  • The golf club installs cameras at its holes and on its driving range and puts a QR code at each tee box.

A session is one paid recording visit: a round in group play or a driving range session. A turn is one player's recording window at a hole.

Snap Golf recording screens: a 20-second countdown before the turn and Maria's turn timer with recording in progress
Snap Golf tee box screen for hole 3 with both cameras recording, a 50-second timer and the player queue, next to highlight cards

Highlights

  • One phone does a camera operator's job: it starts the recording on each camera at a hole, runs the player queue and the timers, and takes the group photo.
  • A player's timer starts only after the server confirms that all cameras at the hole are being recorded.
  • A paid session can be restored after the app is closed, after a logout, and after a reinstall. In the worst case, the group leader scans the QR code again.
  • When the phone is locked or another app is opened, the app switches to Picture in Picture to keep timers and status checks running.
  • A purchase that was charged just before the app closed is picked up on the next launch and sent to the server for verification.
  • We built a ball-flight tracer that runs two neural networks on the iPhone. The first App Store release ships without it.

One phone controls the recording at each hole

The phone starts and stops the recording of the club's cameras, and the server does the heavy work.

The cameras are IP cameras that stream over RTSP, the standard video streaming protocol that most IP cameras support. A hole can have a camera behind the player and a second one with a wide view from above. After payment, the app gets the list of holes and their cameras from the server. Then the recording goes like this:

  • The group leader scans the QR code at the tee box, and the server checks that this is the hole the session expects next.
  • For each turn, the app asks the server to start a recording on each camera at the hole and sends the turn length with the request.
  • The app checks the status of these recordings every 1.5 seconds. The player's timer starts only when the server reports all of them as recording.
  • If the server reports that a camera failed to start, or the request fails, the app cancels the turn and shows an error, so the group learns about it at the hole and not after the round.
  • When the turn ends, the app tells the server to stop the recordings.

Because the server records the video, several video streams do not drain the phone's battery or storage.

The app also connects to a camera directly for the group photo. A 40-second countdown gives the group time to gather in the frame. Then the phone reads the camera stream with FFmpeg and saves one frame. At the end of the round, the app adds the Snap Golf logo and uploads the photos to the server. While the phone reads the stream, it watches for a connection timeout, error messages, and stalled frames, and reports a failure instead of waiting.

Recording the launch monitor screen as a third stream, to show shot data next to the swing, is in development on the server. The app does not use it yet.

Snap Golf recording details screen with player tabs, hole 1 and a recorded swing video
Snap Golf turn screen for hole 4 with a 32-second shot timer, the player queue and an End turn early button

Group play and driving range flows

The app walks players through the recording rules and keeps time.

Before a round, the group leader enters the group size (up to four), the number of players to record, and their names, and pays for the recorded players in one purchase. At each hole, the app:

  • asks the group to confirm that the group ahead has cleared the hole and that everyone knows the guidelines;
  • offers to take a group photo, which can be skipped from the second hole on;
  • starts recording automatically if nobody starts it manually within 20 seconds;
  • gives each player 50 seconds for the shot, pauses for 10 seconds, and moves on to the next player on the list;
  • sends a notification with a sound 10 seconds before the turn ends;
  • lets a player end their turn early.

After the last player, the app asks the group leader to scan the QR code at the next tee box. The number of holes comes from the server, and after the last hole the round finishes on its own. Each recorded player then has their own videos in the session.

The driving range is a separate flow that reuses recording, payments, and processing status from group play. After scanning the QR code at the range, the player has two minutes to warm up and can skip them. When the warm-up runs out, a sound signal plays and the 12-minute recording begins.

Ball-flight tracer built on neural networks that run on the iPhone

We built a module that finds the golf ball in a video and draws its flight line on the footage, like the tracer in TV golf broadcasts. It runs entirely on the iPhone, as video processing did in the earlier version. The first App Store release ships without the tracer. The plan is to finalize it and connect it in the second release.

The problem is hard for two reasons: a ball in flight takes up only a few pixels of the frame, and on a driving range many other balls lie nearby. Here is how the module handles it:

  • One neural network finds the player, and a second one, trained only on golf balls, finds the ball. Both are YOLOv9 models converted to Core ML and set to run on the iPhone's processor and Neural Engine.
  • The module first looks for balls resting near the player's feet. The ball that was hit is the first to leave its spot. Tracking starts from that frame, and the other resting balls are excluded from the search.
  • The module searches for the ball in a small window around its last known position instead of the whole frame. The window follows the ball and shrinks as the ball flies away. Before detection, the window is upscaled so the network can see a tiny object.
  • False detections are filtered out by comparing each new point with the previous ones: it has to keep the ball's horizontal direction and move about as far per frame as the ball did before.
  • If the ball is not visible in some frames, the module fills the gap between detected points. If the camera loses the ball before it lands, the module extends the line with a simple estimate: the ball keeps slowing down and comes down the way it climbed.

The traced video keeps the picture resolution and bitrate of the source and has no audio track yet. The module is written for video from the camera behind the player. We also wrote a second variant for a camera that looks at the hole.

Snap Golf ball-flight tracer running on the iPhone, drawing the ball's flight line over a golfer's swing
Snap Golf session recovery diagram: app restart, logout or reinstall, and a turn that was not recorded, with a QR code rescan as the worst case

Sessions that survive crashes, restarts, and reinstalls

A paid session can be restored when something goes wrong with the phone. Each time a session moves to a new step, the app saves its state on the device and sends a copy to the server.

  • After a restart, the app continues where it stopped: processing the group photos, uploading them, or waiting for the finished videos.
  • After a logout or a reinstall, the app asks the server for paid but unfinished sessions and restores the last state the server received.
  • If the copy was saved by a different version of the app, a field that cannot be read is skipped instead of breaking the whole session.
  • If a check shortly after a turn shows that the recording did not complete properly, the app goes back to the preparation step so the turn can be recorded again.
  • If some videos fail to process, the session still finishes. The group leader gets the finished videos and a message that some could not be processed.

In the worst case, the group leader (or the solo player on the driving range) scans the QR code at the tee box again and the session continues.

Payments that survive crashes and lost connections

The purchase flow is built so that a charge made just before the app closes or loses its connection still reaches the server and the right session.

The earlier version took payments through Stripe, with subscriptions and promo codes. The first App Store release uses in-app purchases:

  • The server tells the app which product to buy and in what quantity: one unit per recorded player in group play.
  • Prices come from the App Store in the player's local currency.
  • Promo codes are checked by the server. A code that covers the full price makes the session free and skips the App Store. Partial discounts are not supported.
  • Before the purchase, the app links it to the session with a shared identifier, so a charge can be matched to the session it paid for.
  • On each launch, the app goes through purchases that were charged but not completed and sends Apple's signed transaction to the server, which verifies it and marks the session as paid.
  • The app closes a transaction only after the server accepts it or rejects it permanently, so a charged purchase is not dropped halfway.
  • A purchase that waits for approval, such as Ask to Buy, completes automatically once it is approved.
Snap Golf payment screen for a round: one unit per recorded player, a promo code field and Pay with App Store
Snap Golf on the iPhone lock screen: Picture in Picture keeps the round running and the lock screen shows Recording

The round keeps running in the background and with the screen locked

The group leader can lock the phone or switch to another app during a round, and the app keeps running the timers and the recording. The server records the video, but the phone starts and ends each turn, so it has to stay active for the whole round. iOS suspends apps that go to the background, which would stop the player timers and the status checks. So when the app goes to the background during recording or processing, it switches to Picture in Picture with a placeholder video and keeps an audio session active, and the lock screen shows "Recording" and "Snap Golf". This keeps the app running, so the timers and status checks continue.

If Picture in Picture is not available, the app sends a notification that minimizing it may stop the recording, and when it is opened again, the timer accounts for the time that has passed. While the app is open, the screen does not turn off on its own during recording.

Processing status and access to videos

Players see how long processing will take and where to find their videos.

While the server processes the videos, the app checks the status of all of them in parallel every 5 seconds. It shows which video is being processed and roughly how long is left. The estimate comes from the server, follows the slowest video, and counts down every second between server updates.

In the session details, videos are grouped by hole and can be filtered by player. Players watch them in a video player we built for swing review, with a timeline for scrubbing, pinch and double-tap zoom, and rotation. They can save videos and group photos to the photo library or share a video link with a coach through the standard Share menu. The app tells players that their videos stay available for 72 hours and should be saved before that.

Snap Golf video player with split-screen swing videos and a launch monitor display
Diagram of the earlier on-device pipeline: a wide shot and a view from behind the player combined into one vertical video, and FFmpeg cutting a hole into per-player videos

Earlier on-device pipeline: split screen and per-player videos

In the earlier version, the iPhone itself produced the split-screen and per-player videos with a pipeline we built. In the first App Store release, the server records each turn as a separate video and can return a split-screen version, so this pipeline is no longer used. It did two things:

  • Two angles, a wide shot on top and the view from behind the player below, were combined frame by frame into one vertical video with the Snap Golf logo. The result took the higher frame rate and bitrate of the two sources and the audio from the camera behind the player.
  • FFmpeg cut one recording of a whole hole into a separate video for each player by the turn timings, in a single pass, and added 3 seconds after the end of each turn.

Sign-in, builds, and diagnostics

  • Players sign in with a phone number and a six-digit SMS code, which the server sends through Twilio. Access tokens are stored in the iOS Keychain and refreshed automatically, so players do not have to sign in again. Players can delete their account in the app.
  • Four builds (development, testing, demo, and release) each work with their own server and can be installed side by side on one phone.
  • The recording flow writes detailed entries to the iOS system log, which can be read from the phone when a failure on the course is investigated.
Snap Golf screen welcoming the player to session 2 of a golf package and asking to scan the QR code

Technologies

🖥 Platforms
iOS
🍏 iOS app
Swift, UIKit, RxSwift, AVFoundation, AVKit (Picture in Picture), Kingfisher, KeychainSwift, DITranquillity, Tuist
🎥 Video
FFmpeg, RTSP
🧠 On-device ML
Core ML, Vision, YOLOv9
⚙️ Backend
Node.js, MongoDB, Twilio
💳 Payments
StoreKit 2 (App Store In-App Purchases), Stripe
📊 Analytics
Firebase
Snap Golf logo with an iOS label