getActiveNotifications method

Future<List<ActiveNotification>> getActiveNotifications()

Returns the list of active notifications shown by the application that haven't been dismissed/removed.

The supported OS versions are

  • Android: Android 6.0 or newer
  • iOS: iOS 10.0 or newer
  • macOS: macOS 10.14 or newer

On Linux it will throw an UnimplementedError.

On Windows, your application must be packaged as an MSIX to be able to use this API. If not, this function will return an empty list. For more details, see: https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/modernize-wpf-tutorial-5

Implementation

Future<List<ActiveNotification>> getActiveNotifications() =>
    FlutterLocalNotificationsPlatform.instance.getActiveNotifications();