subscribeToTopicLegacy method
- @Deprecated('Use subscribeToTopic instead.')
Subscribes a list of registration tokens to an FCM topic using the legacy IID API.
See Subscribe to a topic for code samples and detailed documentation.
registrationTokens: A list of registration tokens to subscribe to the topic.topic: The topic to which to subscribe.
Returns a Future fulfilled with the server's response after the registration tokens have been subscribed to the topic.
Implementation
@Deprecated('Use subscribeToTopic instead.')
Future<MessagingTopicManagementResponse> subscribeToTopicLegacy(
List<String> registrationTokens,
String topic,
) {
return _requestHandler.subscribeToTopicLegacy(registrationTokens, topic);
}