Divvent

Working offline, for your staff

How your staff keep working on a phone with no signal, what is kept on the phone, how their changes are sent later, and what happens when two people changed the same record.

Some work happens where the signal doesn't reach: a loft, a plant room, a basement. Your application can let some of its pages keep working on a phone with no signal. Staff read what they opened and record what they did, and the changes are sent when the signal comes back.

This article is written for the people who use your application, such as your heating technicians or cleaners. You can share it with them.

Before anyone can work offline

Working offline has to be switched on twice.

  1. For the application. Your application says which pages may be kept on a phone, and which roles may do it. To set that up, ask for it on Changes in your own words, for example "let technicians use their job list and job pages without a signal". Because it moves your data onto phones, someone on our team approves that change. See Ask for a change.
  2. For each person, on each phone. Nothing is kept on any phone until the person using it turns it on, on that phone.

Turn it on, on your phone

  1. Sign in on your phone while you have a signal.
  2. Follow the link Working offline on this device, under the menu.
  3. Tick Keep what I open on this device, so I can keep working without a signal.

The same screen shows which pages may be kept, which details of them, how many records the phone holds, when it last reached the server, and when the copy will be deleted. If your role can't work offline, it says so and offers no switch.

Put it on your home screen

Your application can be added to a phone's home screen, if the phone's browser offers it: look for "Add to home screen" or "Install" in the browser's menu. It then opens like an app. With working offline turned on, it opens even with no signal at all.

Before you lose the signal

Open the pages you will need while you still have a signal. The phone keeps what you open: a list you looked at, and each record you opened. A record you never opened on this phone isn't on it.

With no signal

A line at the top of each page says Offline, and when the phone last read from the server.

What doesn't work offline

When the signal comes back

The waiting changes are sent automatically, in the order you made them, and the line at the top says Back online — sending so many changes. Each one is checked as if you had just pressed the button: your role, what you may change, and whether the record still allows it. A change is only ever made once, however often the connection drops.

Most of the time you don't need to do anything. Two things need you:

How long the phone keeps it

The copy on the phone is deleted:

Each time you use the application with a signal, the clock starts again, so a phone in daily use keeps working. Changes still waiting when the copy is deleted go with it, and the screen says how many.

Signing out, and turning it off

Keeping it safe

What the phone keeps is encrypted, with a key the browser won't give out, so it can't be read from the phone's storage or a backup. It holds only the pages and details your application allows. It doesn't protect a phone left unlocked: anyone using your phone while you are signed in sees what you see. Lock your phone, and sign out of a shared one.