AWRA OpsHub Search

One Link, One Phone

A phone that scans for the desktop is holding a key. That key now belongs to one app install, works only for the warehouse it was opened for, runs out on its own, and is listed where an administrator can see which phone holds it and take it back.

Devices, Scanning & Hardware Washingtone Aura 7 min read

At a distribution centre in Changamwe, Mombasa, the receiving clerk links her phone to the desktop at bay 3 by scanning the QR code on the screen, the way we described in the scanner you already own. A container of tiles is coming off a truck. Halfway through, her phone battery dies. The shift supervisor, trying to help, photographs the QR code and sends it to the WhatsApp group so someone else can carry on. Twenty-two people are in that group, including two who work at the Nairobi store.

Nobody did anything wrong in that story. It is what happens when a convenient thing is used by busy people. The question for the software is what the photograph is worth to the twenty-two.

What a link actually is

Scanning the QR code does not make the phone a scanner by itself. The phone sends the code to the server and gets back its own credential: sixty-four random characters, stored on our side only as a hash. Every barcode the phone reads after that is sent with the credential. So the thing worth protecting is not the QR code on the screen but the credential on the phone, and the right question is which phone may present it.

A phone is its install, not its model

The obvious way to tie a credential to a phone is to record something about the phone. The obvious something is the model, and it is useless for this. Every Tecno Spark in the building reports the same model name, and a busy warehouse may have twenty of them.

So a scanner link is tied to the app install instead. Each install of the AWRA app creates its own identifier and sends it with every request. When a phone claims a link, that identifier is recorded against the credential, hashed with a prefix used only for scanners so it cannot be matched against anything else we hold. From then on the credential works from that install and no other. Presented from a second phone, even an identical one, it is refused with a plain sentence: this scanner link belongs to another device; scan the pairing code again on this phone.

A link handed out without an install, as the desktop hands one to itself, is bound to the first phone that uses it. After that it is that phone’s.

Twenty phones of the same model are twenty phones. Only the install can tell them apart.

A link works for one warehouse

A scan session carries the warehouse it was opened for. For someone restricted to one warehouse that is always their own: open a session and it is Changamwe’s, and asking the server for a session on another warehouse is refused. (A session opened from the desktop by someone who works across every warehouse carries none, which is the first item in the list of extensions below.) Every scan from a phone linked to that session is checked against it. Scan a carton of tiles that the Changamwe store does not hold and the scan comes back as wrong location, listing the warehouses and bins where the item is available, rather than quietly acting on stock in Nairobi.

Back to the WhatsApp photograph. The two people in Nairobi who scan the QR code each get their own credential, bound to their own phones, for a session that only works in Changamwe. They can read barcodes into a screen in Mombasa that they cannot see. That is a nuisance, not a breach, and it shows up in the place described next.

Every link runs out

A credential lasts forty-eight hours from its last use, and never more than seven days from when it was issued, however busy it is. Closing the session on the desktop revokes every credential issued for it at once. The session itself stays open until somebody closes it, which is why closing it belongs at the end of the task, alongside printing the goods received note.

Every link is listed

Under Offline Operations, the Linked Scanners table lists every phone paired in the last thirty days. For each one it shows the phone’s name, who opened the session, the warehouse it may scan for (or Any, where the session has none), whether a phone has claimed it yet, the last code it scanned, how many scans it sent and how many failed, when it was last used, and whether it is active, expired or revoked. Filter to the active ones and the Changamwe supervisor can see the two extra phones the morning after.

Beside each active link is Revoke. It ends that one credential immediately; the phone has to pair again to scan. The revocation is written to the audit log with who did it. Revoking needs the device-trust permission, the same one that governs which phones may use the app at all, which is covered in the app was the side door. The same list and the same button are in the API for the mobile app.

What to change on Monday

Close scan sessions when the delivery is checked in. Tell supervisors that a QR code on a screen is for the person at that screen. And look at the active linked scanners once a week: a phone you do not recognise is a five-second fix.

More we can add

Scanner links shaped to your floor

Install binding, the warehouse check, expiry, the console and revocation are in place. These are the next steps warehouses ask for.

Pick the warehouse on the desktop

Choose which warehouse a session scans for when you open it, for supervisors who cover more than one.

Sessions that close themselves

A session that closes after an hour with no scans, revoking its phones.

A session for one bin

Narrow a session to a bin or zone, for counting one aisle.

Tell the session owner

A notice to whoever opened a session when one of its phones is revoked.

The straight answer

What AWRA OpsHub does today

  • A scanner credential per phone, sixty-four random characters stored only as a hash.
  • Bound to the app install, refused from any other phone with a sentence telling the person what to do.
  • A warehouse on every session opened by someone restricted to one, with every scan checked against it.
  • Forty-eight hours from last use, seven days at most, and every credential revoked when its session closes.
  • A Linked Scanners console showing phone, owner, warehouse, last scan, failures and status, with an audited Revoke, on the web and over the API.

More we can add to your workspace

  • Choosing the warehouse on the desktop when opening a scan session. Commission it
  • A session that closes itself after a quiet period. Commission it
  • A session limited to a bin or zone rather than a whole warehouse. Commission it
  • A notice to the session owner when one of its phones is revoked. Commission it

Where we point you to a specialist

  • A credential proves which phone is scanning, not who is holding it. If a phone is handed to someone else, the scans are recorded against that phone; staff discipline on shared devices is a matter for the warehouse, and the console is there so it can be checked.

The desktop warehouse picker is a small change and the one multi-site supervisors ask for first.

Our take

Convenience is the reason a phone is used as a scanner, so the controls have to cost nothing at the bay: the clerk scans a QR code and works, exactly as before. What changed is everything behind it. The credential belongs to one install, works in one warehouse, runs out on its own, and sits in a list where someone can see it and take it back.

See the linked scanner

A QR code on the desktop, a phone that becomes the scanner, and the controls behind the link.

Explore the linked scanner

Frequently asked questions

Can a scanner link be used from a second phone?

No. A link is bound to the app install that claimed it. From any other phone, including one of the same model, it is refused and the person is told to scan the pairing code on their own phone.

Why not tie the link to the phone model?

Because every phone of the same model reports the same model name. The app install has its own identifier, so it can tell two identical phones apart.

Can a linked phone scan stock in another warehouse?

A session opened for a warehouse checks every scan against it. A stock item that warehouse does not hold comes back as a wrong-location scan, with the places it is available listed.

How long does a scanner link last?

Forty-eight hours from its last use and never more than seven days. Closing the scan session ends every link issued for it.

Where can I see which phones are linked?

Under Offline Operations, in the Linked Scanners table, which lists the last 30 days with each phone’s warehouse, owner, last scan and status. Anyone with the device-trust permission can revoke a link there.

Share this article

LinkedIn X WhatsApp

How to do it in AWRA

Step-by-step instructions for what this post describes, in the help centre.

Help Center

Need a quick answer while you read?

Run inventory, procurement, assets, sales, and field work with approved AWRA guidance for setup, migration, integrations, security, pricing, and support.

Search all approved AWRA public help articles.

Open Help Center