getSubscribedTopics method

  1. @override
Future<List<String>> getSubscribedTopics()
override

Returns the list of topics the device is currently subscribed to. On Android/iOS with Firebase this reflects both FCM and local subscriptions. Without Firebase, it reflects locally stored subscriptions only.

Implementation

@override
Future<List<String>> getSubscribedTopics() async {
  final result = await methodChannel.invokeListMethod<String>(
    'getSubscribedTopics',
  );
  return result ?? [];
}