-
Notifications
You must be signed in to change notification settings - Fork 2
Mobile Client and Live Telemetry
GiZano edited this page Aug 5, 2026
·
1 revision
Built with React Native and Expo, the client serves as the primary EEW notification interface.
-
Connection: Maintains a persistent WebSocket to
/ws/alerts, authenticated viaMOBILE_WS_TOKENwith exponential backoff. -
Native Haptics & Notifications:
"CRITICAL"payloads trigger an SOS vibration pattern and schedule a high-priority system push notification (AndroidImportance.MAX).
- Data Fetching: Standard REST operations are managed by TanStack Query for automatic caching and background refetching.
-
Live Seismograph: Uses
victory-nativeto render a dynamic line chart of aggregated seismic activity. -
Geospatial Map:
react-native-mapsdisplays custom markers based on exact PostGIS coordinates, colored by active/offline status. -
AI Report Banner:
COMPLETEDreports are rendered as a highlighted banner (summary + recommendations) for the latest alert, with an "AI Report Unavailable" badge on failures — see the AI Emergency Report Service.
-
Alert Store:
useAlertStoremaintains a rolling history of the 10 most recent alerts. -
Offline Mode:
usePreferencesStorecontrols an "Offline Mode" that intentionally closes WebSockets and disables React Query polling to conserve battery.
- Previous: Backend Services & Event Processing
- Next: AI Emergency Report Service
- Back to: Home