getActiveNotificationService method
Get the currently active notification service.
Returns a string representing the active service:
- "none": No notification service is active
- "polling": The WorkManager polling service is active
- "foreground": The foreground service is active
- "firebase": Firebase Cloud Messaging is set as the active service
Implementation
@override
Future<String> getActiveNotificationService() async {
final result = await methodChannel.invokeMethod<String>(
'getActiveNotificationService',
);
return result ?? 'none';
}