Back to Decisions
Push notifications to drivers: FCM vs. SMS fallback
AcceptedBen Harris2024-02-15
notificationsmobileinfrastructure
Context
Why this decision needed to be made
Drivers need to receive dispatch notifications reliably even when the app is in the background or not installed. Need to choose between push-only or a push + SMS fallback approach.
Options Considered
Comparison of available options
| Option | Pros | Cons | Chosen |
|---|---|---|---|
FCM only |
|
| — |
FCM with SMS fallback via TwilioSelected |
|
|
Outcome
What was decided
FCM as primary, Twilio SMS as fallback when app is not installed or FCM delivery fails after 60 seconds
Rationale
Why this option was chosen
Dispatch notifications are time-critical. Missing a pickup assignment costs the carrier money. SMS fallback adds ~€40/month at current volumes, which is negligible compared to a missed job.
Linked Requirements
Requirements affected by this decision
Referenced Files
Documents related to this decision