Overview
This node sends push notifications via Firebase Cloud Messaging (FCM). It supports sending messages to a single device token, multiple device tokens, a topic, or a condition expression. Users can customize the notification title, body, and additional fields such as images, collapse keys, TTL, Android-specific options, and custom data payloads. It is useful for automating push notifications in applications, alert systems, or marketing campaigns.
Use Case Examples
- Send a notification to a single device using its FCM token.
- Broadcast a message to multiple devices by providing a list of tokens.
- Send a notification to all devices subscribed to a specific topic.
- Use a condition expression to target devices based on multiple topics.
Properties
| Name | Meaning |
|---|---|
| Disparo para | Selects the target type for the push notification (single token, multiple tokens, topic, or condition). |
| Device Token | The FCM device token to send the notification to (required if target is 'token'). |
| Device Tokens | List of device tokens (one per line or comma-separated) to send notifications to (used if target is 'tokens'). |
| Topic | The topic name to send the notification to (used if target is 'topic'). |
| Condition | Condition expression to target devices (used if target is 'condition'). |
| Título | Notification title text. |
| Mensagem | Notification body text. |
| Campos Adicionais | Additional optional fields to customize the notification, including image URL, collapse key, TTL, Android priority, Android notification settings (channel ID, sound, click action, color), custom data key-value pairs, JSON data object, raw JSON message, and whether to merge raw JSON with the constructed message. |
Output
JSON
json- Response from the Firebase Cloud Messaging API for each sent message.
Dependencies
- Google Firebase FCM API credentials with service account JSON and project ID
Troubleshooting
- Ensure the Google Firebase FCM API credentials are correctly configured with valid service account JSON and project ID.
- Verify that the device tokens or topics are valid and correctly formatted.
- Check the format of the TTL and other optional fields to avoid API errors.
- If using raw JSON message, ensure it is valid JSON and correctly structured to avoid request failures.
Links
- Firebase Cloud Messaging Documentation - Official documentation for Firebase Cloud Messaging API and usage.