# The guard app

> The guard app runs on Vigil devices. Guards use it to sign in for a shift, scan beacons on patrol, chat, send voice notes and photos, and log gate traffic.

Source: https://vigilsecure.net/docs/concepts/guard-app/

The guard app is what a guard uses on shift. It runs on a
[Vigil device](https://vigilsecure.net/docs/concepts/devices.md), a rugged Android handset your company owns, and it
is the only thing the device runs. A guard needs no email address, no password and no
training on the console.

The app has three tabs: **Chats**, **Map** and **Profile**.

## Start a shift

A device that is linked to your organization shows your company's name and logo and the
button **Sign in to start shift**.

1. The guard chooses **Sign in to start shift**.
2. They enter their 13-digit South African ID number on the keypad.
3. They choose **Start shift**.

Sign-in works without signal, because the device already holds your organization's users.

### A guard's first shift

If the device does not know the ID number, it shows **We don't know this ID yet** and
**Create a new user**. The guard enters their first and last name and takes a photo of
their face. They join your organization with the guard role and can start working at once.
You do not have to invite guards beforehand.

One person is signed in on a device at a time. To end a shift the guard opens **Profile**
and chooses **Sign out & end shift**.

### When nobody is signed in

An agent can send the device a sign-in request. The device sounds an alarm and
shows **Sign In Requested** until somebody chooses **Acknowledge** and signs in. See
[Guard check-ins](https://vigilsecure.net/docs/examples/guard-check-ins.md).

## Chats

The **Chats** tab lists the guard's chats. A guard can start a direct chat with any person
or agent in the organization and takes part in the groups they have been added to.

In a chat, a guard can send:

- **Text**
- A **voice note**: tap the microphone, speak, send. Vigil adds a transcript.
- A **photo**, taken with the camera
- A **beacon scan**
- A **vehicle** or a **person** at the gate

Ticks show whether a message was sent, delivered and read. A new message gives a sound and
a double buzz.

## Patrols

A patrol reaches the guard as a card in a chat, titled **Patrol**, with how many beacons
are scanned and when it ends. The card has a **Scan** button, and **Show 7 beacons** lists
each beacon and whether it has been scanned.

- For a **QR code** beacon, the guard points the camera at the code.
- For a **geofence** beacon, the guard walks into its area and checks in.

Each scan ticks off its beacon. The card shows **3 of 7 scanned**, then **All 7 scanned**.
See [Guard patrols](https://vigilsecure.net/docs/examples/guard-patrols.md).

## The gate: vehicles and people

From a chat, the guard chooses **+**, then **Vehicle** or **Person**, and **In** or **Out**.

- **Vehicle**: scan the licence disc on the windscreen, which fills in the plate, make,
  model and expiry. Scan the driver's ID card or driver's licence. Add passengers, a reason
  for the visit and photos of the load, plate or damage.
- **Person**: scan their ID card or driver's licence, add a reason and a photo.

Where there is no barcode, the guard can type the plate, or type a passport or other
document number. When a vehicle that came in earlier leaves, the driver and passengers are
filled in from the entry. See [Gate access control](https://vigilsecure.net/docs/examples/gate-access-control.md).

## Map

The **Map** tab shows your organization's sites and beacons and the guard's own position.
The map is stored on the device, so it works without signal. A device downloads its map
over Wi-Fi.

Standing inside a geofence beacon shows a card with **Scan**. The scan goes to the guard's
default chat for beacon scans. The device can vibrate and play a sound when the guard walks
into a beacon's area; both can be switched off on **Profile**.

## Working without signal

Guards often work where coverage is poor. The app is built for it:

- Sign-in, reading chats, the map, text, voice notes, photos, scans and gate entries all
  work offline.
- What a guard sends is kept on the device and sent when the connection returns.
- A beacon scan keeps the time it was really made, so a patrol walked without signal still
  counts. Other messages sent offline, such as a gate entry or a voice note, are timed when
  they reach Vigil.

## What the device reports

While the app runs, the device reports its battery, signal and position every ten minutes,
and its position more often while it is moving. It also records when a user signs in or
out, when it is put on or taken off a charger, and when it joins or leaves Wi-Fi. You see
all of this on the [device's page](https://vigilsecure.net/docs/concepts/devices.md) in the console.

The device shows a permanent **Tracking location** notification while it does this.

## A locked-down device

A Vigil device is set up as a single-purpose tool. Guards cannot install apps or leave the
guard app. The app updates itself. A recovery screen, protected by a code, lets a
technician fix a device in the field.

## Related

- [Devices](https://vigilsecure.net/docs/concepts/devices.md)
- [Guard patrols](https://vigilsecure.net/docs/examples/guard-patrols.md)
- [Frequently asked questions](https://vigilsecure.net/docs/faq.md#devices-and-the-guard-app)
