Delivered remotely for a business based in Birmingham, United Kingdom. Names withheld by agreement.
Project Overview
Industry: Field service and multi-location operations, delivered as a subscription SaaS platform.
Solution summary: A multi-tenant React Native mobile application uniting fault reporting, contractor ticketing, Firebase push notifications, and Twilio SMS/voice SLA escalation.
Organisations operating dozens or hundreds of retail branches, hospitality venues, or commercial facilities face constant operational friction when critical equipment breaks down. A failed walk-in chiller, malfunctioning HVAC controller, or blocked loading bay door immediately disrupts trading, yet traditional helpdesk email queues let urgent faults sit unread while managers and contractors trade missed calls. Delivered as a multi-tenant SaaS mobile product, this React Native application connects front-line site managers directly with internal technicians and external maintenance contractors through deterministic ticket workflows and automated multi-channel escalation.
Multi-Site Escalation Bottlenecks
Silent alert failures on urgent faults. Standard push notifications frequently go unnoticed when on-call technicians are driving, wearing ear protection, or operating in low-signal basements where data packets lag.
Unstructured fault descriptions. Site managers reporting problems over voicemail or generic forms often omitted asset tags, exact locations, or error codes, forcing engineers to arrive on site blind or make repeated diagnostic trips.
Opaque contractor accountability. Without clear timestamps separating ticket creation, first acknowledgement, arrival on site, and repair completion, regional operations teams could not distinguish slow vendor response from complex technical repairs.
Privacy and coordination friction with external vendors. Giving third-party contractors personal phone numbers of branch managers created off-platform side channels where updates vanished from the central audit trail.
Architectural Strategy
Escalation-first alerting pipeline. Rather than treating notifications as fire-and-forget messages, the backend couples ticket severity directly to SLA countdown timers. Unacknowledged incidents escalate automatically from Firebase push notifications to Twilio SMS and automated voice prompts across backup responder tiers.
Configuration-driven multi-tenancy. Because each subscribing business runs different site hierarchies, fault taxonomies, and contractor routing rules, the React Native client renders categories, severity guidance, and mandatory closure fields from tenant-scoped API schemas rather than hard-coded templates.
Strict ticket lifecycle state machine. Every incident moves through explicit, server-enforced states (Open, Acknowledged, En Route, On Site, Awaiting Parts, Resolved, Verified), eliminating ambiguous free-text status updates and enabling accurate SLA measurement.
In-app communication tied to ticket context. Masked Twilio voice bridging and threaded photo comments keep troubleshooting inside the incident timeline while shielding personal contact numbers.
Core Capabilities
Fast mobile issue intake. Branch staff select their site, pick the affected asset category, attach photos or short symptom notes, and set urgency in under a minute—eliminating back-office helpdesk bottlenecks.
Multi-channel SLA escalation. High-priority tickets dispatch instant Firebase notifications to assigned responders; if unclaimed within the tenant's SLA window, backend schedulers trigger Twilio SMS reminders and voice alerts to secondary technicians or regional managers.
Contractor triage and ownership locking. Field engineers review open tickets across assigned sites, inspect historical repairs on the same asset, and claim ownership with one tap to halt further escalation.
Masked click-to-call coordination. Responders initiate voice calls to site contacts straight from the ticket view via Twilio proxy numbers, preserving privacy while automatically logging contact events.
Evidence-backed resolution and verification. Closing a ticket requires repair notes, follow-up recommendations if temporary fixes were applied, and post-work verification photos before the site manager confirms closure.
Technical Architecture
The mobile client in React Native communicates over authenticated REST endpoints with a Node.js backend that coordinates tenant isolation, SLA escalation workers, Firebase Cloud Messaging, and Twilio webhooks.
Flow: Site manager submits fault with photos in React Native -> Node.js API validates tenant schema, stores ticket in Open state, and schedules SLA escalation timer -> Firebase Cloud Messaging dispatches immediate push alert to primary contractor group -> If unacknowledged at timer expiry, backend scheduler invokes Twilio SMS / Voice API to escalate to backup tier -> Responding technician taps Accept -> Atomic API lock transitions ticket to Acknowledged, cancels pending escalation jobs, and updates site manager timeline via Firebase -> Technician resolves fault and uploads verification photo -> Site manager confirms closure.
To handle erratic site connectivity, pending comments, status updates, and resolution photos buffer locally on the handset until network reachability resumes, syncing in chronological order.
Technology Stack
| Category | Technology detail |
|---|---|
| Mobile framework | React Native with React powering Android and iOS cross-platform builds from a unified codebase |
| Language | JavaScript (ES6+) across mobile views, state workflows, and backend escalation services |
| Push alerting | Firebase Cloud Messaging delivering priority-channeled ticket alerts, comments, and status updates |
| SMS & voice escalation | Twilio Programmable Messaging and Voice APIs for automated SLA fallback alerts and masked engineer-to-site calling |
| Backend API & timers | Node.js REST API orchestrating tenant rules, ticket state machines, and SLA escalation schedulers |
| Multi-tenant config | Tenant-scoped fault taxonomies, severity matrices, and regional contractor routing rules |
| Media & evidence | In-app camera and gallery capture for fault reporting and post-repair verification photos |
| Crash & event diagnostics | Firebase Crashlytics and webhook delivery logs tracking notification acknowledgement latency |
Engineering Trade-offs & Solutions
| Architectural Challenge | Engineering Decision & Rationale |
|---|---|
| Push-only alerting vs. multi-channel Twilio fallback | Paired Firebase Cloud Messaging with Twilio SMS and automated voice escalation so critical P1 outages still reach on-call engineers when data signals or notification settings fail. |
| Single-tenant custom builds vs. schema-driven SaaS app | Loaded site trees, fault categories, and SLA policies dynamically per tenant on login, allowing one React Native binary to serve diverse retail and hospitality subscribers. |
| Exposing direct phone numbers vs. Twilio voice proxying | Implemented server-brokered masked calling through Twilio so contractors and site managers communicate rapidly without exposing personal mobile numbers or losing call audit logs. |
| Permissive status edits vs. atomic server state locking | Enforced strict transition guards on the Node.js API so two contractors cannot simultaneously claim or overwrite the same active incident. |
Security, Tenant Isolation & Reliability
Strict tenant scoping at the API boundary. Every REST request carries authenticated user claims bound to an organization and authorized site list; database queries and media access URLs validate tenant ownership on every read and write so subscribers remain strictly isolated.
Signed Twilio webhook verification. Incoming SMS replies and voice-status callbacks validate Twilio cryptographic request signatures before mutating ticket timelines or acknowledging escalations, blocking spoofed external payloads.
Resilient escalation cancellation. Whenever a ticket transitions out of Open—whether claimed by an engineer, downgraded, or cancelled by a manager—pending escalation tasks are revoked atomically and double-checked at execution time so responders never receive phantom alerts for resolved jobs.
Alert Throughput & Scale
Concurrent multi-site fan-out. During regional weather events or power disruptions that trigger simultaneous faults across dozens of venues, escalation queues decouple ticket persistence from outbound Firebase and Twilio API calls so issue logging stays instantaneous for site staff.
Lightweight list payloads and media separation. Mobile ticket feeds fetch compact summary projections with paginated timelines, lazy-loading full-resolution inspection images only when an engineer opens an individual ticket.
Proactive client telemetry. Firebase Crashlytics paired with server-side notification delivery tracking lets platform operators spot OS-level notification permission blocks or carrier SMS bounces before SLA breaches occur.
Operational Outcomes
Multi-location operators replaced fragmented phone trees and email threads with a single, auditable fault-resolution pipeline where critical issues consistently reach accountable engineers. Site managers spend minimal time raising clear, photo-documented tickets, while contractors arrive prepared with accurate fault context and protected communication channels. Across subscribing organisations, automated escalation and clean SLA milestone tracking give regional leaders transparent operational oversight over both internal technicians and external maintenance vendors.