Skip to content

Working offline and the Outbox

In the field, the connection comes and goes. Defthand works without waiting for it: work you do without a connection is kept on the phone and is sent by itself, in order, when the connection is back. Your work is not lost even if you close the app.

Module Without a connection
Inspections Inspections opened before and planned for the next 7 days open; starting, answers, notes, photos, reporting problems, red tags, signatures and submitting all work. Starting a corrective action, adding photos, the plan and the closure request also work.
Forms The list opened before shows; a form you fill in waits on the phone and is sent when the connection is back.
Issues Lists and issues opened before can be read; changes to status, priority, assignee, due date, labels and estimate, comments, new issues, sub-issues, triage decisions, reminders and favorites wait on the phone.
My information The personnel card opened before shows; a certificate you add waits on the phone.
My tasks The list opened before shows; deciding needs a connection.
My trainings Needs a connection: lessons, exams, QR check-in and certificates work only with a connection.
Chat, Inbox Reading and sending messages need a connection.

A screen opened without a connection says “Offline · last updated 10:42”: what you see is the information the phone saved last. If the screen was never opened, it says “Offline · not on this device”.

Below each screen’s title, a thin bar shows when needed:

Bar What it means
Offline No connection; no work waiting.
Offline · 3 changes waiting No connection; 3 changes are waiting on the phone.
Sending · 12 changes The connection is back; waiting changes are being sent.
Uploading photos · 42% Photos are uploading.
1 change could not be sent The server did not accept a change, or there is a conflict. You need to look at it.
Inspection sent · Passed, Score: 85.7% · 1 finding An inspection you submitted offline went out when the connection came back. Tapping it opens the inspection.

Tapping the bar opens the Outbox. When you go back, you return to the screen where you tapped the bar.

Me › Outbox (or tapping the bar) shows every piece of work waiting on the phone. The connection status is written at the top of the screen:

  • “Connected. Waiting changes go one after another.”
  • “No connection. Your work is kept on this device and goes by itself when the connection is back.”

Each row shows:

  • what the work is: “Sending the inspection”, “Saving the answers”, “Uploading an evidence photo”, “Form submission”, “Issue: new comment”, “Sending a certificate” and so on,
  • which record it belongs to: “5S workplace inspection · Sales floor”, “SAH-12 · Forklift maintenance”,
  • its status, how many times it was tried (“2 attempts”), when it was added and the time of the next attempt,
  • if there is an error, the error text and the Error code.
Status What it means
Waiting Waiting for its turn or for the connection.
Sending Being sent right now.
Sent Reached the server. Sent items leave the list after a while.
Not sent The server did not accept it. The error text says what happened.
Conflict The same record changed somewhere else while you were offline. You need to choose which one stays.

If there is a connection error or a temporary problem on the server, the work is tried again by itself; the wait between attempts starts at a few seconds and grows to at most 5 minutes.

Button What it does
Send now Tries to send the waiting work right away, without waiting.
Try again Tries again a piece of work that could not be sent (fix the problem first; e.g. complete the missing answer in the inspection).
Open Opens the record of the conflicting or failed work; you make the choice there.
Discard Deletes the work. It asks “Delete “…”?”: it is never sent to the server, the change waiting on the phone is lost, and this cannot be undone. Confirm with Delete.

If nothing is waiting, it says “Everything is sent”.

Work for the same record goes in order: for an inspection, first the start, then the answers, then the submission. Photos do not wait for each other. An inspection’s submission waits until that inspection’s photos, signatures and problems reported from the phone have reached the server. That way the inspection never goes out incomplete.

Inspection evidence, corrective action photos, problem photos, signatures and certificate files are first kept on the phone, then uploaded in the background.

  • The upload starts while the app is on screen. Once it has started, it keeps going even if you put the app in the background or close it.
  • On Android, “Uploading photos” and the progress show in the notification drawer; without a connection it says “Waiting for a connection”.
  • When a closed app is opened again, the upload continues where it left off.
  • A photo’s row shows statuses such as “Queued”, “Waiting for a connection”, “Uploading 40%”, “Saving…”.

If photos stay “Queued” for a long time, keep the app open; the upload starts only while the app is on screen.

Conflict: “the server’s” or “mine”

Section titled “Conflict: “the server’s” or “mine””

If the same record changed on another device or in the web app while you were offline, you are asked which one stays when you open the record:

  • For inspection answers: Take the server’s version or Keep mine (overwrite),
  • For form drafts: Take the server’s or Keep mine.

If you choose “the server’s”, the changes on your phone are dropped; if you choose “mine”, yours overwrite the ones on the server.

If you sign out while there is unsent work, the app asks first. If you sign out anyway, the work is kept on this phone, tied only to your account; it is sent when you sign in again with the same account. No other account can see it. Details: Me.

Ayşe is doing an inspection without a connection in the basement of the Gebze warehouse.

  1. Before going into the warehouse, while she has a connection in the car park, she opens Inspections; the “Warehouse fire safety” inspection is saved on the phone.
  2. In the basement the bar says “Offline”. Ayşe taps Start, answers the questions, takes 12 photos, signs and taps Submit. The inspection becomes “Waiting to be sent”; the bar says “Offline · 16 changes waiting”.
  3. When she goes upstairs, the connection comes back. The bar becomes “Sending · 16 changes”, then “Uploading photos · 60%”.
  4. A few minutes later the bar says “Inspection sent · Passed, Score: 92% · 1 finding”. Ayşe taps it and sees the result.