[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/cloud-messaging/js/send-with-console [Back]  [Original]

Send Messages using the Firebase console  |  Firebase Cloud Messaging Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback

Send Messages using the Firebase console Stay organized with collections Save and categorize content based on your preferences.

You can send notification messages using the Notifications composer in the Firebase console. Though this does not provide the same flexibility or scalability as sending messages with the Firebase Admin SDK or the HTTP v1 API, it can be very useful for testing or for highly targeted marketing and user engagement. The Firebase console provides analytics-based A/B testing to help refine and improve marketing messages.

After you have developed logic in your app to receive messages, you can allow non-technical users to send messages with the Notifications composer.

About

When you send a notification message from the Notifications composer, FCM uses the values you enter in the form fields in these ways:

These fields map to keys available through the Message object. For example, key-value pairs entered in the Custom data field of the composer are handled as a data payload for the notification. Other fields map directly to keys in the notification object or in the platform-specific notification configuration.

Note that some fields in the Notifications composer are not available through the FCM API. For example, you can target user segments based on app version, language, browser type and version, or user properties in ways that are not available using the server API.

Caution: In another important difference from programmatic messaging, the Firebase console lets you cancel any scheduled message that is not already in progress. Once a message fanout is actually in progress, it is fully committed and cannot be canceled through the Firebase console nor by Firebase support.

The keys that the Firebase console sends to clients are:

Key Console field label Description
notification.title Notification title Indicates notification title.
notification.body Notification text Indicates notification body text.
data Custom data Key/value pairs that you define. These are delivered as a data payload for the app to handle.

Keys that influence message delivery behavior include:

Key Console field label Description
sound Sound Indicates a sound to play when the device receives a notification.
time_to_live Expires This parameter specifies how long (in seconds) the message should be kept in FCM storage if the device is offline. For more information, see Setting the lifespan of a message.
Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-19 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-19 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page