Back to Decisions

Push notifications to drivers: FCM vs. SMS fallback

Accepted
Ben 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
OptionProsConsChosen
FCM only
  • Free
  • Works well on Android
  • Simple to implement
  • Fails if app not installed
  • iOS delivery unreliable in background
  • No delivery guarantee
—
FCM with SMS fallback via TwilioSelected
  • High reliability
  • Works without app installed
  • SMS guarantees delivery
  • SMS cost (~€0.04/message)
  • Adds Twilio dependency
  • More complex delivery logic
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.