A mesh network is a group of devices that pass data to each other directly, instead of sending everything through one central tower, router or server. Phone mesh messaging apps use this idea so people can chat when there is no mobile signal or internet. This guide explains, step by step, what happens between pressing Send and the message appearing on a friend's phone, using our app RoamMesh as a real, documented example.
Infrastructure vs mesh
A normal message travels phone → cell tower → operator network → internet → app server → internet → cell tower → phone. If any part of that chain is missing, congested or switched off, the message waits. In a mesh, the chain is made of the phones themselves: phone → nearby phone → nearby phone → friend's phone. No tower, SIM or server is required for that path.
A message reaches a friend who is out of your direct range by hopping through phones in between. Relays pass the sealed message on without being able to read it.
Step 1: phones discover each other
Before anything can be sent, phones need to know who is nearby. RoamMesh does this in three ways on Android:
- Bluetooth Low Energy (BLE) advertising and scanning. Each phone regularly broadcasts a tiny "I'm here" signal and listens for others. BLE is designed to do this using little power.
- Google Nearby Connections. An Android service that combines Bluetooth and Wi-Fi to set up faster direct links between nearby phones.
- Local Wi-Fi (LAN). Phones on the same Wi-Fi network or hotspot can find each other with local broadcasts, even when that network has no internet.
This is also why mesh apps ask for Bluetooth and "Nearby devices" permissions: without them Android does not let an app scan for or connect to other phones.
Step 2: the message is sealed
Before leaving your phone, the message is encrypted so that only its intended readers can open it. In RoamMesh, a group has a secret key shared when members join (for example by scanning the leader's QR code), and every phone has its own key pair for private one-to-one messages. Private messages are sealed with ChaCha20-Poly1305, an authenticated encryption method standardised in RFC 8439 that both hides the content and detects tampering. Group messages also carry a check value made with the group key, so a receiving phone can tell whether a message was sent by someone holding that key and was not altered on the way.
The result is a sealed envelope with a small, readable outside: a message ID, the sender's mesh ID, a channel and a hop counter. Relays need that outside to do their job; they cannot read what is inside.
Step 3: hops and the time-to-live counter
Your phone sends the envelope to every phone it is connected to. Each phone that receives it checks two things: Have I seen this message ID before? and Are there hops left? If it is new and the counter is above zero, the phone lowers the counter by one and passes it on. This simple method is called flooding.
The counter, often called TTL (time to live), is what stops a message from bouncing around a crowd forever and draining everyone's battery. RoamMesh starts chat messages at 4 hops and SOS alerts at 6, so emergencies can travel further through a crowd. Duplicate copies are recognised by their ID and ignored.
Step 4: delivery and confirmations
When the message reaches a phone that holds the right key, it is opened, checked and shown. The receiving phone sends back a small acknowledgement. If no acknowledgement comes back, the sender retries for a while. For SOS alerts RoamMesh keeps repeating the alert until group members confirm, and shows who confirmed.
Step 5: store-and-forward when nobody is in range
Sometimes there is simply no path: your friend is two streets away and nobody in between has the app. Instead of giving up, a phone can keep the sealed message and hand it on later when it meets the right phones. This is called store-and-forward, or delay-tolerant networking. In RoamMesh, carried messages stay end-to-end encrypted, the stored queue on the phone is additionally sealed with ChaCha20-Poly1305 under a key kept in the Android Keystore-backed secure store, and old entries expire. It means a message can arrive late rather than never, but it can still fail if the paths never meet.
Step 6 (optional): bridging two meshes over the internet
If one phone in each part of a group has internet, a bridge can join the two islands. RoamMesh's optional bridge relays messages that are already encrypted and deletes them automatically after 24 hours (72 hours for SOS). It is switched off in Kid mode and never carries the public Nearby room. The sister app, Hajj & Umrah Offline Chat, has its own separate bridge.
What makes a phone mesh stronger or weaker
| Helps | Hurts |
|---|---|
| More phones running the app spread through the area | Very few phones, or everyone bunched far apart |
| Open space, line of sight | Concrete walls, metal, bodies in very dense crowds |
| Bluetooth on, permissions allowed, app allowed to run in the background | Aggressive battery savers that stop the app |
| Short messages and alerts | Large photos and long voice clips over Bluetooth only |
This is why there is no honest single "range" figure for mesh chat. Reach depends on the people around you, the place and the phones. Apps that show distances can only estimate them.
Interoperability: bigger meshes
A mesh is only as good as the number of phones in it, so compatibility matters. RoamMesh and Hajj & Umrah Offline Chat use the same wire format, so phones running either app relay each other's sealed messages. Adult RoamMesh users can also link with BitChat, an open-source Bluetooth mesh messenger.
Public rooms vs private groups
Encryption only protects a message if the key is secret. A public room, such as RoamMesh's optional 18+ Nearby room, uses a key everyone knows, so anyone nearby who opted in can read it. Private groups and direct messages use their own keys. A good mesh app tells you clearly which kind of conversation you are in.
Limits to keep in mind
Please note: mesh delivery cannot be promised. Messages need phones in range or a chain of phones running the app. Mesh messaging is a useful extra layer, not a replacement for mobile networks, two-way radios or emergency services. In an emergency, call your local emergency number.
Try it
To see a mesh in action, install RoamMesh on Google Play on two or three phones, create a group, switch off mobile data and Wi-Fi internet on one phone, and send a message. Then read our step-by-step offline messaging app guide to set it up for a trip, or the Hajj offline group chat guide for pilgrims.
Frequently asked questions
Is a Bluetooth mesh the same as Bluetooth Mesh for smart lights?
No. The Bluetooth SIG 'Bluetooth Mesh' standard is mainly used for lights and sensors. Messaging apps build their own mesh on top of Bluetooth Low Energy and Wi-Fi, with their own message format and encryption.
Why is the number of hops limited?
Every relay repeats the message, which uses airtime and battery on many phones. A hop limit stops a message from circling a crowd forever. RoamMesh uses 4 hops for chat and 6 for SOS.
Can relay phones read my messages?
Not the content of private group or direct messages: they are end-to-end encrypted, so relays only see sealed data plus the routing details needed to pass it on.
Does a mesh work with only two phones?
Yes, if they are in direct range. Hops only help when there are more phones running the app between you.
About RoamMesh
RoamMesh: Offline Chat & SOS is a free Android app from SmartPath Apps for group chat, hold-to-talk walkie-talkie and SOS with no signal, SIM or account. Every feature is free; the only purchase removes ads. It does not replace emergency services.