← All guides
Guide

Selling tickets on the dock offline: POS apps and thermal printers

How a point-of-sale app sells and prints tickets without a network - storing sales, syncing, 58 and 80 mm ESC/POS printers, Bluetooth dropouts and reprints.

Why must a dock point of sale work without a network?

Sales on the dock pile up in the last minutes before departure, with a queue in front and coverage that comes and goes. If the till depends on the connection, every slowdown becomes an unsold ticket or a passenger who risks missing the boat.

We tackled this problem by building a point-of-sale app for ferry ticket offices, for Android and iOS, that turns a phone or tablet connected to a thermal printer into a complete ticket office. This guide covers what really matters in a project like this, and the problems that show up when the app leaves the office and reaches the pier.

How does a sale work without a connection?

The principle is called offline first: the app always works on the data stored on the device, and the network only keeps it in line with the central platform. A sale goes through these steps:

  1. The operator picks the ticket from the catalogue already stored on the device and records the payment.
  2. The sale is saved locally, in our case in a SQLite database.
  3. The ticket is printed over Bluetooth, with departure time and QR code.
  4. The sale is synced with the back-office as soon as the network returns, without the operator doing anything.

That's why the queue doesn't stop when coverage drops: the operator keeps working the same way, and the office finds the sales as soon as the device reconnects. Dock sales, online sales and B2B bookings all end up in the same place.

Syncing must also cope with repeated sends. If the network drops just as a sale is being sent, the app can't know whether it arrived and will send it again: the system has to recognise it, for example with a unique code created on the device, without counting it twice in the takings.

Card payments are a separate matter. The app can record the payment method offline, but the card terminal needs its own connection: if the dock has no network at all, plan what happens in that case.

What happens to seats when the tills are offline?

It's the first question to ask, because the answer changes the project. It depends on one thing only: do the tickets you sell have a declared number of seats?

Without a number of seats, the problem doesn't exist. That's the case of the app we built: tickets sold on the dock have no declared quantity, so several tills can sell offline at the same time with no conflicts to resolve. When the network returns, each sale is simply added to the others.

With a capacity to respect, things change. An offline till can't know what the others are selling, or what was sold online, and no technology can fill that gap. A business decision is needed before development, and there are three main options:

  • Give each till a share of seats it can sell offline without asking for confirmation
  • Block offline sales above a certain load on the trip, when the risk becomes too high
  • Accept the exception and handle any overbooking afterwards, with a clear rule for the staff

The choice depends on how often trips really fill up and how much an overbooking costs. If leaving a passenger on the dock is unthinkable, the share of seats is the safest route.

Which thermal printer should you choose?

Thermal printers print without ink, on heat-sensitive paper: no cartridges to replace and fast printing, two real advantages when there's a queue. In our project we use printers by the Italian manufacturer Custom, with the app set up for both 58 mm and 80 mm models.

What is ESC/POS and why does it matter?

ESC/POS is the command language born with Epson printers and now supported by many manufacturers. The app sends it text, bold, images, QR codes and the paper-cut command. Choosing ESC/POS printers means the software isn't tied to a single model. It isn't an absolute guarantee, though: the implementation varies between models, for example in how images or QR codes are handled, so every new printer has to be tested with the real ticket.

58 or 80 mm?

58 mm80 mm
Characters per line (standard font)Usually 32Usually 48
SizeMore compact, easy to carryLarger, suited to a fixed counter
TicketNarrower and longerMore room for text and QR code

The layout has to be designed for each width. A ticket designed for 80 mm doesn't adapt to 58 by itself: lines wrap in the wrong place and the QR code can come out too large or too small. Making the width a setting in the app lets you use both formats with the same software. Test the QR code in particular with the scanner you'll really use at boarding, because the printed ticket must scan on the first try.

One note before you start: a thermal printer prints tickets, but it isn't a fiscal device by itself. If your business has to record or transmit sales to the tax authority, check with your accountant which document the till must issue, because the answer can change the project.

What problems show up in the field?

On the pier, software is tested by things that never happen in the office. These three points needed the most attention in our project.

Bluetooth dropping

The connection with the printer will break sooner or later: the printer switches off or goes into standby, the battery runs out, the device moves away, the operating system closes the connection. Treat it as a normal event, not a rare error.

So the app must reconnect on its own, as ours does, and show the printer status at all times. An operator with a queue in front can't open the phone's Bluetooth settings every time the connection drops.

Saving the ticket

What happens if the printer disconnects while printing a ticket that's already paid? The order of operations decides everything: save the sale before sending it to print. That way a printer problem loses neither the takings nor the ticket, and the operator can try again as soon as the printer is back.

Saving before printing also avoids the opposite mistake: redoing the sale from scratch and recording the same takings twice.

Reprints

Reprints are needed more than you'd think: a print that failed halfway, paper running out, a passenger who lost the ticket. A reprint must be quick to find and, above all, must not create a new sale: it's a new copy of the same ticket, with the same QR code, and it doesn't change the day's takings.

It's also worth keeping track of prints. Our app has a dedicated log: if the numbers don't add up at the end of the day, you can reconstruct what was printed and when.

Android or iOS: does it make a difference?

Built in Flutter, the app has a single codebase, and our point of sale runs on both systems. Bluetooth, though, is one of the places where the platforms behave differently.

Android lets apps talk to classic Bluetooth printers with few constraints. On iPhone and iPad, apps communicate freely with Bluetooth Low Energy devices, while classic Bluetooth usually requires accessories certified by Apple (the MFi programme). In practice a printer that works perfectly with an Android tablet may not be usable from an iPad.

If the tills will use iOS devices, even only some of them, choose the printer together with development: get one unit of the exact model and test it on both systems before ordering ten.

What to ask whoever builds the POS app

  • If I turn off Wi-Fi and mobile data, can I sell and print as usual? Ask to see it live.
  • What happens if the printer switches off while printing a ticket that's already paid?
  • Does a reprint create a new sale, or a copy of the same ticket?
  • If the same sale is sent twice, how do you avoid counting it twice?
  • How are seats handled when the tills are offline?
  • Which printers have you tested the app with, and on which systems?
  • Does the app support several paper widths, or just one?
  • How is each device registered as a till, and what does the office see at the end of the day?

Where to start

The right time is the off-season: there's time to test printers and workflows on the dock, with the staff who'll use the app every day, before the queues arrive. A point of sale like this can stand on its own or connect to online ticketing and the back-office, as in the ecosystem we built for a ferry operator.

We start with a free 30-minute call and scope a first fixed-price milestone, usually selling, printing and syncing, then add groups, B2B and reports. How we work is on the custom app development page.

Frequently asked questions

Do you need internet to print a ticket?

No. The phone or tablet talks to the printer directly over Bluetooth, so selling and printing work without coverage. The network is only needed to sync sales with the central platform, and that can happen later.

If several points of sale sell offline, can they oversell?

It depends on the ticket. If there's no declared number of seats, the risk doesn't exist. If every trip has a capacity to respect, no offline point of sale can know what the others sold, and you need a rule before development starts, for example a share of seats assigned to each device.

Is a 58 or an 80 mm thermal printer better?

The 58 mm is more compact and easier to carry, the 80 mm gives more room for text and the QR code. If the app supports both widths, each ticket office can choose what suits its counter.

Can the POS app run on both Android and iOS?

Yes, but choose the printer accordingly. Android is more permissive with Bluetooth connections, while iPhone and iPad have more constraints. Before buying printers, test the exact model on both systems.

Can we use a thermal printer we already own?

Often yes, if it supports ESC/POS commands and connects over Bluetooth to every device you'll use. Test it with the real ticket before deciding, because different models don't always behave the same way.

Let's ship something worth shipping.

Answer a 2-minute questionnaire, then we set up a 30-minute call: we talk through your project, scope a first milestone and tell you honestly if we're the right team.

Tell us about your project →