Firebase Cloud Messaging
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost.
|Send notification messages or data messages
|Send notification messages that are displayed to your user. Or send data messages and determine completely what happens in your application code. See Message types.
|Versatile message targeting
|Distribute messages to your client app in any of 3 ways—to single devices, to groups of devices, or to devices subscribed to topics.
|Send messages from client apps
|Send acknowledgments, chats, and other messages from devices back to your server over FCM’s reliable and battery-efficient connection channel.
How does it work?
An FCM implementation includes two main components for sending and receiving:
- A trusted environment such as Cloud Functions for Firebase or an app server on which to build, target, and send messages.
You can send messages via the Firebase Admin SDK or the FCM server protocol. You can use the Notifications composer for testing and to send marketing or engagement messages using powerful built-in targeting and analytics or custom imported segments.
See the architectural overview for more detail and important information about the components of FCM.