Inspiration

In February 2023, earthquakes struck southern Türkiye. In the first hours, networks overloaded, and many people could not reach anyone. Rescuers did not know where to go first. In a disaster, the right information in the first hour can decide who is reached in time.

We built this for social impact, not profit. The question behind it: what if a disaster report never depended on a single connection?

What it does

Disaster Communication Ecosystem is an Android app that keeps disaster reports moving through three layers:

  • Cloud AI triage. With internet, each short note is triaged by Gemini through Firebase AI Logic: an urgency level, a category and a plain-language summary. The card shows "AI analyzing…" and then "Triaged in cloud".
  • On-device fallback. With no internet, or if the cloud call times out, the app does not fail. It runs a rule-based on-device triage and labels it clearly ("on device, offline").
  • Phone-to-phone mesh (experimental). When both internet and cellular are gone, phones relay signed reports directly to each other over Bluetooth and Wi-Fi Direct using Nearby Connections.
  • Responder view. Reports sync to Firestore, and responders see one shared picture on a map. The Istanbul scenario in the demo is simulated (4,000 nodes across 39 districts) and is labeled SIMULATED DATA everywhere it appears.

Privacy by design: personal details stay on the phone. Only the minimum fields are sent to the cloud, every report is digitally signed (Ed25519), and the Firestore documents contain no personal data.

How we built it

  • Flutter/Dart app with a Kotlin layer for Nearby Connections and the native cloud bridge
  • Firebase AI Logic (Gemini) for triage, with the hybrid pattern: try on-device, fall back to cloud, and fall back again to rules. Our main test device (Galaxy A73) has no Gemini Nano, so it runs the cloud path.
  • Firebase App Check, Anonymous Auth and Firestore with security rules
  • Offline-first storage in SQLite, signed messages, gossip-style relay
  • OpenStreetMap-based responder map with a fixed-seed, client-side simulation
  • GitHub Actions CI (static analysis, unit tests, Gradle build, dependency and permission checks) and a release workflow that publishes the test APK

Challenges we ran into

  • Android 16 + Nearby: the mesh failed with permission errors even though the app had every permission. The cause was Google Play services' own Nearby permissions being off on our device.
  • Cold-start GPS timeouts and a map tile server blocking our requests.
  • Keeping all personal data out of the cloud payload while still giving responders something useful.
  • Being honest in the product: every simulated element, and every fallback, is labeled on screen.

Accomplishments that we're proud of

  • Cloud triage and Firestore sync verified on two physical devices (Galaxy A73, Galaxy Tab A8).
  • Mesh verified between an Android 16 phone and an Android 14 tablet.
  • A graceful chain: cloud, then on-device, then mesh. The app keeps working as connectivity disappears.

What we learned

Resilience is a design problem, not a feature. Every layer has to say what it is and what it is not.

What's next for Disaster Communication Ecosystem

  • Field tests with real responders and disaster-response teams
  • Real on-device Gemini Nano triage on supported devices
  • Wider device compatibility and stability for the mesh
  • Multi-language triage output for local communities

Testing notes

Download the debug APK from the GitHub Releases link. Cloud triage needs Firebase App Check; on a fresh install without an allowed token, the app falls back to on-device rule-based triage and says so. The demo video shows the full cloud path on our devices.

Built With

Share this project:

Updates

Submission history