How a message travels
The app registers with FCM and receives a device token. It sends that token to your back end. When something happens, such as a new job assigned to a driver, your server calls the FCM API with the token, and FCM delivers it through Google's connection on Android or through Apple's service on iPhones.
Message types
Notification messages show a visible alert. Data messages carry values for the app to handle silently. Topics let you send to many subscribers at once.
Where it goes wrong
- Tokens expire or change; servers must remove dead tokens.
- Battery optimization and manufacturer restrictions can delay messages for low-priority sends.
- iOS needs a correctly configured Apple key before FCM can reach iPhones.
- Time-critical alerts should use high priority sparingly and must not be the only channel for essential information.
Questions, answered
Sending messages through FCM has not had usage charges; check Firebase's current terms for your plan.
FCM forwards to Apple's push service, so iPhone messages still travel via Apple in the end.