flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux

Stars
2.4K
Committers
119

Bot releases are visible (Hide)

flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.12

Published by MaikuB over 2 years ago

  • Breaking change callbacks have now been reworked. There are now the following callbacks and both will pass an instance of the NotificationResponse class
  • onDidReceiveNotificationResponse: invoked only when the app is running. This works for when a user has selected a notification or notification action. This replaces the onSelectNotification callback that existed before. For notification actions, the action needs to be configured to indicate the the app or user interface should be shown on invoking the action for this callback to be invoked i.e. by specifying the DarwinNotificationActionOption.foreground option on iOS and the showsUserInterface property on Android. On macOS and Linux, as there's no support for background isolates it will always invoke this callback
  • onDidReceiveBackgroundNotificationResponse: invoked on a background isolate for when a user has selected a notification action. This replaces the onSelectNotificationAction callback
  • Breaking change the NotificationAppLaunchDetails has been updated to contain an instance NotificationResponse class with the payload belonging to the NotificationResponse class. This is to allow knowing more details about what caused the app to launch e.g. if a notification action was used to do so
  • [iOS][macOS] updated how notification categories were set behind the scenes so the categories specified. This fixes an issue where notification action may not work at all as were being appended to the list of existing categories. This could lead to issues where notification actions wouldn't work at all and potentially result in notification categories growing over time.
  • Updated docs to clarify that on Apple's platforms, notification actions are only supported on iOS 10 or newer and macOS 10.14 or newer
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.11

Published by MaikuB over 2 years ago

  • Includes changes from 9.4.0
  • Updated example app to display groupKey of an ActiveNotification
  • Bumped dependency to flutter_local_notifications_platform_interface
flutter_local_notifications - flutter_local_notifications-v9.4.0

Published by MaikuB over 2 years ago

  • [Android] Added tag to ActiveNotification that would allow for finding the notification's taf. Thanks to the PR from Simon Ser
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.10

Published by MaikuB over 2 years ago

  • [iOS][macOS] Added support for specifying interruption level of notifications and ability to request critical alert permissions. Thanks to the PR from maprohu)
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.9

Published by MaikuB over 2 years ago

  • [iOS] Fixed issue 1506 where the plugin was trying to process responses to notifications created outside of the plugin (e.g. those from Firebase) and resulted in an exception
  • [macOS] Breaking change the requestPermissions() method of the MacOSFlutterLocalNotificationsPlugin class now only accepts non-nullable parameters that default to false. This makes it consistent with the iOS implementation of the plugin
flutter_local_notifications - flutter_local_notifications-v9.3.3

Published by MaikuB over 2 years ago

  • [macOS] Fixed issue 1507 where calling the requestPermissions() method of the MacOSFlutterLocalNotificationsPlugin class led to a crash. This will be coalesced to assume that the boolean parameters around the requested permissions default to false to be consistent with the iOS implementation. Note that in 10.0.0 the method will have a breaking change so that these parameters are non-nullable
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.8

Published by MaikuB over 2 years ago

  • Includes fix from 9.3.2
flutter_local_notifications - flutter_local_notifications-v9.3.2

Published by MaikuB over 2 years ago

  • Fix issue 1485 where the addition of colorized property caused backwards compatibility issues with previously scheduled notifications as this would be null when deserialised from shared preferences
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.7

Published by MaikuB over 2 years ago

  • Includes fix from 9.3.1
flutter_local_notifications - flutter_local_notifications-v9.3.1

Published by MaikuB over 2 years ago

  • Fix issue 1479 that could cause compilation issue on the web by removing dart:ffi import
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.6

Published by MaikuB over 2 years ago

  • [Android] Fixed issue 1476 where crash can occur on Android 12 as mutability flags weren't being applied to intents associated with notification actions
flutter_local_notifications - flutter_local_notifications-v9.3.0

Published by MaikuB over 2 years ago

  • [Android] Updated how scheduled notifications are saved to shared preferences so it is done in the background. This is to fix issue 1378 where pendingNotificationRequests method may not report the correct number of scheduled notifications if it is invoked before the data had been saved to shared preferences
  • [Android] Added colorized property to AndroidNotificationDetails class. This can be used to apply a background colour to the notification but for most styles, this only works if a foreground service was used. Example app has been updated to demonstrate its usage. Thanks to the PR from benechiu
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.5

Published by MaikuB over 2 years ago

  • [Android] Fix error where plugin was lookup to the notification action callback and failed to find it as it was doing before the Flutter engine was initialised
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.4

Published by MaikuB over 2 years ago

  • [Android] Fix Android 12 specific issue related to notification acitons by adding exported flag to the receiver used to process actions
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.3

Published by MaikuB almost 3 years ago

  • [Linux] Added support for notification actions. Thanks to the PR from Yaroslav Pronin
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.2

Published by MaikuB almost 3 years ago

  • [iOS][macOS] Breaking changes iOS and macOS classes have been renamed and refactored as they are based on the same operating system and share the same notification APIs. Rather than having a prefix of either IOS or MacOS, these are now replaced by classes with a Darwin prefix. For example, IOSInitializationSettings can be replaced with DarwinInitializationSettings
  • [Android][iOS][macOS] Added support for notification actions. Massive thanks to Sebastian Roth and Pieter van Loon for their work on this
  • [Android] Updated how scheduled notifications are saved to shared preferences so it is done in the background. This is to fix issue 1378 where pendingNotificationRequests method may not report the correct number of scheduled notifications if it is invoked before the data had been saved to shared preferences
flutter_local_notifications - flutter_local_notifications-v9.2.0

Published by MaikuB almost 3 years ago

  • [Android] Added areNotificationsEnabled() method to AndroidFlutterLocalNotificationsPlugin. This allows querying if notifications are enabled for the app calling the method. Thanks to the PR from Konstantin Pelz
  • [Linux] Fix initialize() returning null all the time instead of returning an appropriate boolean value to indicate if plugin has been initialised
flutter_local_notifications - flutter_local_notifications-v9.1.5

Published by MaikuB almost 3 years ago

  • Bumped flutter_local_notifications_linux dependency
flutter_local_notifications - flutter_local_notifications-v10.0.0-dev.1

Published by MaikuB almost 3 years ago

  • [iOS] getActiveNotifications() is now supported for iOS versions 10.0 or newer
  • [macOS] getActiveNotifications() is now supported for macOS versions 10.14 or newer
  • [Android] Breaking change the following error codes included in PlatformExceptions that can occur on Android have been updated
    • INVALID_ICON -> invalid_icon
    • INVALID_LARGE_ICON -> invalid_large_icon
    • INVALID_BIG_PICTURE -> invalid_big_picture
    • INVALID_SOUND -> invalid_sound
    • INVALID_LED_DETAILS -> invalid_led_details
    • GET_ACTIVE_NOTIFICATIONS_ERROR_CODE -> unsupported_os_version
    • GET_NOTIFICATION_CHANNELS_ERROR_CODE -> getNotificationChannelsError`
flutter_local_notifications - flutter_local_notifications-v9.1.4

Published by MaikuB almost 3 years ago

  • [Android] Reverted change in 9.1.0 that added the groupKey to ActiveNotification as this was a potentially breaking change. This will instead be part of a major release
Package Rankings
Top 0.59% on Pub.dev
Related Projects