Overview
This node allows users to manage Firebase Cloud Messaging (FCM) operations, specifically focusing on unsubscribing device tokens from a topic. It is useful for applications that need to control which devices receive notifications by managing topic subscriptions. For example, an app can unsubscribe users from a weather update topic when they no longer wish to receive those notifications.
Use Case Examples
- Unsubscribe a list of device tokens from a specific topic to stop receiving notifications related to that topic.
- Manage device subscriptions dynamically based on user preferences or app logic.
Properties
| Name | Meaning |
|---|---|
| Topic | The name of the topic from which device tokens will be unsubscribed. This is required to specify the target topic. |
| Device Tokens | An array of device registration tokens to unsubscribe from the specified topic. Maximum 1000 tokens can be provided. |
Output
JSON
success- Indicates whether the unsubscribe operation was successful.result- The result object returned from the Firebase unsubscribe operation, containing details of the unsubscription.
Dependencies
- Requires Firebase Cloud Messaging API credentials for authentication and authorization.
Troubleshooting
- Ensure the topic name is provided and follows the valid format; otherwise, the node will throw an error.
- Make sure at least one device token is provided and the number does not exceed 1000 tokens per request.
- Invalid or expired Firebase credentials will cause initialization failure.
- Errors in the device token format or topic format will result in operation failure with descriptive error messages.
Links
- Firebase Cloud Messaging Documentation - Official documentation for Firebase Cloud Messaging, including topics and device token management.