Repository navigation
Research: Offline messaging
barisoksuz edited this page Feb 24, 2026
·
7 revisions
The system will use a hybrid transport model:
- Django backend (We can discuss about it but I think django is ok)
- PostgreSQL database (we can decide what to use later)
- REST APIs: DRF (if we use django, django rest framework will be used)
- FCM push notifications (I plan to use it for some sort of offline sync)
- Android-only (Kotlin)
- BLE for discovery
- Wi-Fi Direct for high-speed sync
- Store-Carry-Forward (Delay Tolerant Networking model)
- Foreground service when mesh mode is enabled
- Language: Kotlin
- BLE: Device discovery
- Wi-Fi Direct: Local LAN creation for data transfer
- Local DB: Room (SQLite)
Kotlin (or java) is mandatory for the offline mesh because Android radio APIs (BLE, Wi-Fi Direct, foreground services) require native access.
We use a Delay Tolerant Network (DTN) approach:
- Devices store messages locally
- When devices meet, they exchange message inventories
- Missing messages are transferred
- Messages propagate multi-hop over time
This allows offline users to receive posts indirectly via other devices.
Two sections per hub: (Actually we do not have to have two different feeds but for now this is the best idea that I have so we can discuss together in a meeting or sth like that.)
- Server-first delivery
- Global reach
- Mesh-first delivery (even if online) (an online user may want to send messages to the people that are offline, so he/she posts here and mesh communication starts)
- Intended for local emergency broadcast
This gives clear user expectations and avoids confusion.
(The followin makes sense to me because a panicked user may post to online feed instead of offline and that message should not vanish)
- Online post → send to server
- Offline post → send via mesh + server sync when have connection
- All posts → mesh
- Mark for later server sync
- Mesh only runs when toggle ON
- Foreground service required
- Duty-cycle scanning (e.g., 15s scan / 45--120s sleep)
- Short Wi-Fi Direct sessions (connect → sync → disconnect)
- Kotlin is mandatory for Android mesh layer.
- A user-controlled Mesh Mode is necessary for battery control.
- Two feeds (Online + Offline) improve clarity and reliability.
- Store-Carry-Forward DTN model is the correct offline strategy.
Team Members
- Weekly Meeting 1 (15.02.2026)
- Weekly Meeting 2 (23.02.2026)
- Weekly Meeting 3 (03.03.2026)
- Weekly Meeting 4 (11.03.2026)
- Weekly Meeting 5 (16.03.2026)
- Weekly Meeting 6 (23.03.2026)
- Weekly Meeting 7 (30.03.2026)
- Weekly Meeting 8 (06.04.2026)
- Weekly Meeting 9 (15.04.2026)
- Weekly Meeting 10 (29.04.2026)
- Weekly Meeting 11 (06.05.2026)
- Weekly Meeting 12 (11.05.2026)
- Lab 1 Report (12.02.2026)
- Lab 2 Report (19.02.2026)
- Lab 3 Report (26.02.2026)
- Lab 4 Report (05.03.2026)
- Lab 5 Report (12.03.2026)
- Lab 6 Report (26.03.2026)
- Lab 7 Report (02.04.2026)
- Lab 8 Report (16.04.2026)
- Lab 9 Report (30.04.2026)
- Lab 10 Report (07.05.2026)