# Offline attendance kiosk app with automatic sync

> Hadirly kiosks keep recording attendance without internet. Records wait in a local queue, sync when the link returns, and repeat uploads are matched by ID.

Diperbarui: 2026-11-21
Penulis: Hadirly team
URL: https://hadirly.app/en/guides/kiosk-attendance/offline-attendance/

The Hadirly kiosk writes every attendance record to a local database on the tablet first, and then sends it to the server. A dropped connection does not stop recording at the gate. When the link returns, the tablet sends the queue in batches of up to 200 records. Each record has its own unique ID, so the server recognizes a repeat upload and does not count it twice.

## How the queue works

1. Each record gets a unique ID (UUIDv7) and waits in a local table with a pending status.
2. The tablet sends a heartbeat with its connection status and queue size, and pulls the latest list of enrolled people.
3. Sync runs when the app starts, when the connection returns, and every 60 seconds.
4. A failed batch is retried after longer pauses, with a little randomness, so many tablets do not retry at the same moment.
5. The server answers each record as accepted, duplicate, or rejected with a reason. Rejected records stay on the tablet so a manager can see them.
6. The queue size appears in the top bar, next to the connection indicator.

## What keeps working offline

Face recognition uses the enrolled people stored on the tablet. Their face templates are encrypted with AES-256-GCM. The cooldown still applies, because the kiosk reads its own local records. In automatic mode, the clock-in or clock-out direction is worked out from the person's latest record that day, stored on the tablet. The signage keeps playing.

## What changes offline

- A newly approved person is not recognized until the list updates. After the connection returns, the update usually reaches the tablet within about a minute.
- A person who has just been deactivated stays recognized until the tablet receives the change. If that is not acceptable, make sure the tablet is online when you deactivate someone.
- The tablet clock is compared with server time. A difference of more than five minutes flags the record for review.
- Records that arrive late keep the time at which they actually happened.

## Limits and what we have not tested

We have not finished field testing of the offline-then-sync case on our target tablets. The queue logic exists, but run your own test before you depend on it: turn the internet off, record a few people, turn it back on, then compare the report with your own count.

- The queue lives on the tablet. If the app's data is cleared, or the tablet fails before the queue is sent, those records are lost.
- We have not published a reliability figure for sync.

## Why the queue lives on the tablet

The gate should never wait for the internet. Writing the record locally first means attendance is saved as soon as a person is recognized, even if the server is slow or out of reach. The server is where records are gathered and reported. A record existing does not depend on the server.

## What the manager sees

The tablet reports its status with each heartbeat, so the console shows whether a kiosk is online and how many records are waiting. Rejected records appear with the reason the server gave. An offline alert can be sent to managers, so a kiosk that stops reporting does not go unnoticed.

## Checklist

- Check the queue size and the connection indicator every morning before the first clock-in.
- Do not clear the kiosk app's data while the queue still holds records.
- Turn on offline alerts for managers.
- Keep the tablet clock accurate.
- Run a power-and-connection test before you rely on the system for real attendance.
