Running the service
Phones
Device groups, enrolment codes, the publications phones receive, keeping the phones current, and their reports.
The ContactMesh app on a phone is enrolled into a device group with an enrolment code. The phone, not a person, is what signs in: it holds a key in its own hardware, and nobody types a password. Phones are on Phones in the dashboard.
Table or Cards at the top of the page shows the same device groups, phones, connections and reports as rows or as a card each: its name at the
top, the columns you show as its facts, its buttons at the foot. The choice is in the address, as layout=cards, and
this browser opens the page in the one last chosen.
A phone without the app can still have a group’s contacts, in its own Contacts: see Contacts on phones without the app.
Switching phones on
Section titled “Switching phones on”Phones are off until a deployment switches them on. Set DEVICE_API_ENABLED=true in .env, and
PUBLIC_ORIGIN to the HTTPS address phones reach the dashboard at; the API refuses to start with phones on
and no PUBLIC_ORIGIN. The reverse proxy passes /device/ and /connect/ to the API as it passes /api/,
without buffering /device/v1/events, and says what the phone used in X-Forwarded-Proto and
X-Forwarded-Host. Phones are served over HTTPS only, and the API takes the proxy’s word for it only when the
proxy runs on the same host or on the stack’s Docker network, or connects from a network named in
TRUSTED_PROXY_NETWORKS. Behind any other proxy a phone can enrol but never syncs.
To wake phones whose app is closed, set PUSH_RELAY_URL and PUSH_RELAY_KEY too: the address of the push
relay ContactMesh runs, and the key it issued your installation. Only the phones’ push tokens and “sync now”
reach the relay, never a contact.
Device groups
Section titled “Device groups”A device group is a set of phones in one tenant, such as Warehouse North. New device group asks for its name, whether each phone waits for approval, and its offline limit: the days a phone may go without a sync before the app removes everything ContactMesh put on it, 14 unless you say otherwise. A group cannot be deleted while a phone in it is waiting, enrolled or still to be wiped.
Enrolment codes
Section titled “Enrolment codes”On a group’s page, Issue code makes a code for it:
| Setting | Unless you say otherwise |
|---|---|
| Phones | 50: one code for a whole rollout table |
| Valid for | 7 days |
| Approval | The group’s |
The code is shown once, three ways: a QR code the app scans, an invitation link
(https://<dashboard>/enrol/<code>) that opens the app, and fifteen characters to type, such as
K7Q2M-9XWPR-T4HDN. After that the list names it by its first five characters only. A code stops after ten
wrong tries. Revoke stops a code; the phones it enrolled stay enrolled.
A group’s MDM code is the one its downloaded MDM configuration carries, issued by the first download; the link’s page, finding ContactMesh from your domain and the MDM rollout are on Rolling out phones.
A licence that names a number of phones enrols no more than that: a phone beyond it is refused, and the phones enrolled keep working. Settings › Licence shows how many are in use.
Approving and revoking
Section titled “Approving and revoking”The Phones tab lists every phone, opening on those waiting.
- Approve lets a waiting phone get the directory. Reject refuses it, and it is told to wipe. A phone nobody approves stops waiting when its code expires, and reads Expired.
- Revoke takes an enrolled phone’s access away. At its next request the app deletes everything ContactMesh put on the phone. With a push relay, a revoked or rejected phone is woken at once to make that request; without one, it makes it when its app is next open or runs in the background. Its status then says Told to wipe, and Wiped once the phone says it has wiped.
- A push is best effort, and an iPhone whose app was swiped away gets none. For a phone your MDM manages, its own selective wipe (Intune app protection, Workspace ONE) is the instant path; a phone that never comes back wipes itself at its group’s offline limit.
- A phone that disconnects itself in the app reads Left, its wipe done. One whose person cancels while it waits reads Cancelled. Neither needs revoking or rejecting.
- Edit details sets a phone’s name, asset tag, serial number and who has it, and notes that only those who may change them read. A phone given these by its MDM’s managed app configuration arrives with them already set.
Publications on phones
Section titled “Publications on phones”A device group receives publications as an Entra group does. On a publication’s Audience tab, Add device group chooses the group, the field set its phones see (the publication’s own unless you choose another), and what may go into the phone’s own Contacts app:
| Phone contacts | What happens |
|---|---|
| App only | The contacts stay in the ContactMesh app. |
| User’s choice | Written to the phone’s Contacts while the person has Add to phone contacts on. The default. |
| Always | Written whenever the app may use the phone’s Contacts. |
Card fields chooses what of a contact is written to the phone’s cards: company and role, phone numbers, email addresses, address and picture. The name is always written; the phone numbers are the default.
A group can receive several publications. A contact that reaches it through two of them is one contact on the phone, with everything either publication publishes. Only an active publication reaches phones: pausing it, or taking the group off its audience, removes its contacts from the phones at their next sync. A picture reaches the phones when the field set publishes it.
A publication is switched on for phones as for mailboxes: a dry run, which counts each group’s phones and what they would receive, and a sign-off. One whose audience is device groups alone starts without waves. See Publications.
Keeping phones current
Section titled “Keeping phones current”What a group’s phones hold is worked out once for the group, however many phones it has, within seconds of a change at the source. A phone whose app is open hears of it at once and syncs. One whose app is closed is woken by a silent push within seconds, though not more often than every 15 minutes; without a push relay, and where the phone’s system holds the push back, it syncs when the app is opened and in the background.
A phone’s row on the Phones tab shows:
- Last sync: when it last fetched the directory and how many contacts it holds, or Sync failed when its last attempt did not succeed.
- Applied: Up to date when it has everything its group holds, Behind with how far it got.
- Held back: removals it is holding, below.
- Push: Reachable when it can be woken, with when it last was; No relay when it could be and your installation has no push relay.
- Its operating system and app versions and its model, as the phone reports them.
A group’s page shows how many contacts its phones hold and the publications it receives. Move on a phone’s row moves it to another group; at its next sync it gets that group’s contacts in place of its own.
A phone’s clock may be up to five minutes off the server’s. Further off, the server answers with its own time, so the app can go by that instead.
Removals held on a phone
Section titled “Removals held on a phone”The app applies the tenant’s Deletion guard, set in its settings, as the server does: when a sync would remove more contacts than the guard lets through, the phone keeps them and says so. A removal that would leave the phone with no contacts at all always waits, even with the guard switched off.
Holding removals lists those phones, and Held back says how many each holds. Release held removals on a phone’s row, or Release all on its group’s page, lets the phones remove them at their next sync.
Reports from phones
Section titled “Reports from phones”A person who finds a contact wrong on their phone reports it in the app: what is wrong — a wrong number, a wrong role, somebody who has left, somebody listed twice, something else — and, for a number, a role, a department or an email address, the value they would put there. A report belongs to the phone; a name is the person’s to give or not.
The Reports tab lists them, opening on those still open, with what each suggests and the phone and group it came from. A report’s own page puts what was suggested beside what the source has now. Its answer is one of:
| Answer | What the phone shows |
|---|---|
| In review | Somebody is looking at it |
| Fixed | The source has the change |
| Not changed | Nothing changed, with the one line you write: The number is right |
| Already reported | Somebody reported the same before; optionally, which report |
The phone that reported is told the status and your line, and nobody else is: it sees it within seconds while its app is open, otherwise at its next sync. Change the contact at its source, not here: once the source has every value a report suggested, or no longer has somebody reported as gone, the report closes as Fixed by itself.
A closed report is kept for the tenant’s Report retention, a year unless changed in its settings, and then deleted; an open one is kept until it is closed.
Who may do what
Section titled “Who may do what”| Permission | What it allows |
|---|---|
devices.read | Device groups, their codes (never a code itself) and the phones |
devices.manage | Creating, changing and deleting a device group, and a phone’s details |
enrolment-codes.issue | Issuing and revoking a code, and downloading a group’s MDM configuration, after confirming it’s you |
devices.approve | Approving, rejecting, revoking and moving a phone, after confirming it’s you |
audiences.edit | Adding a device group to a publication’s audience, changing and removing it |
deletions.approve | Releasing removals held on phones, after confirming it’s you |
reports.review | Reading the reports phones send, and answering them |
Admin holds them all and Viewer holds devices.read. A role given in one tenant reaches that tenant’s
groups and phones only. Every enrolment, approval, revocation, move and release is on the
audit trail.