表示来自Messaging.subscribeToTopic()和Messaging.unsubscribeFromTopic()方法的服务器响应的接口。
请参阅从服务器管理主题以获取代码示例和详细文档。
签名:
export interface MessagingTopicManagementResponse
特性
财产 | 类型 | 描述 |
---|---|---|
错误 | FirebaseArrayIndexError[] | 与提供的注册令牌相对应的错误数组。该数组的长度将等于MessagingTopicManagementResponse.failureCount 。 |
失败计数 | 数字 | 无法订阅主题并导致错误的注册令牌的数量。 |
成功计数 | 数字 | 成功订阅该主题的注册令牌的数量。 |
消息主题管理响应错误
与提供的注册令牌相对应的错误数组。该数组的长度将等于MessagingTopicManagementResponse.failureCount 。
签名:
errors: FirebaseArrayIndexError[];
MessagingTopicManagementResponse.failureCount
无法订阅主题并导致错误的注册令牌的数量。
签名:
failureCount: number;
MessagingTopicManagementResponse.successCount
成功订阅该主题的注册令牌的数量。
签名:
successCount: number;