MessagingTopicManagementResponse interface

Interface representing the server response from the Messaging.subscribeToTopic() and Messaging.unsubscribeFromTopic() methods.

See Manage topics from the server for code samples and detailed documentation.

Signature:

export interface MessagingTopicManagementResponse 

Properties

Property Type Description
errors FirebaseArrayIndexError[] An array of errors corresponding to the provided registration token(s). The length of this array will be equal to MessagingTopicManagementResponse.failureCount.
failureCount number The number of registration tokens that could not be subscribed to the topic and resulted in an error.
successCount number The number of registration tokens that were successfully subscribed to the topic.

MessagingTopicManagementResponse.errors

An array of errors corresponding to the provided registration token(s). The length of this array will be equal to MessagingTopicManagementResponse.failureCount.

Signature:

errors: FirebaseArrayIndexError[];

MessagingTopicManagementResponse.failureCount

The number of registration tokens that could not be subscribed to the topic and resulted in an error.

Signature:

failureCount: number;

MessagingTopicManagementResponse.successCount

The number of registration tokens that were successfully subscribed to the topic.

Signature:

successCount: number;