A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
schedule
, showDailyAtTime
and showWeeklyAtDayAndTime
methods. Notifications that were scheduled prior to this release should still workTime
classScheduledNotifReceiver
instead of ScheduledNotifReceiver
. When logging that exact alarm permissions have been revoked the the tag is now FLTLocalNotifPlugin
instead of notification
showDailyAtTime()
method. Thanks to the PR from Yuichiro Kawano
System.out.println()
alarmClock
as one of the AndroidScheduleMode
options. This is useful for cases where a notification functions as an alarm and may show an alarm icon on the status bar depending on the device Thanks to the PR from Muhammed Ballan
showUserInterface
set to true whilst app is terminated wouldn't dismiss/cancel notificationAndroidFlutterLocalNotificationsPlugin
APIs around scheduling notifications where the allowWhileIdle
has been removed and replaced by a scheduleMode
parameter that allows for scheduling inexact notificationsAndroidScheduleMode
enum but the exact alarm permissions had been revoked, an error log message will be written and notification will no longer be scheduled. This means recurring notifications would no longer be scheduled as well given the permission had been revokedid
property of the ActiveNotification
class is now nullable to help indicate that the notification may not have been created by the plugin e.g. it was from Firebase Cloud Messaging. Thanks to the PR from frankvollebregt
AndroidNotificationCategory
AndroidServiceForegroundType
AndroidServiceStartType
AudioAttributesUsage
Day
InterruptionLevel
LinuxNotificationCategory
LinuxNotificationUrgency
Priority
AndroidScheduleMode
to allow for configuring this if required. The androidAllowWhileIdle
argument is now deprecated when using the APIs available for scheduling notifications via the FlutterLocalNotificationsPlugin
APIs and will be removed in the future. Thanks to the PR from Joachim Böhmer. Note that if if a notification was scheduled with exact timing via the AndroidScheduleMode
but the exact alarm permissions had been revoked, an error log message will be written and notification will no longer be scheduled. Do note that the androidScheduleMode
parameter has a default value of AndroidScheduleMode.exact
to align with what was the default value of androidAllowWhileIdle
before (i.e. false
) where that meant exact timing was to be used but the device being a low-powered idle may cause it to be delayed. When the androidAllowWhileIdle
parameter is removed in the future, androidScheduleMode
will become a required named parameter to ensure developers explicitly specify the value they want
androidAllowWhileIdle
is deprecated via the FlutterLocalNotificationsPlugin
APIs, allowWhileIdle
has been removed and completely replaced by a scheduleMode
parameter when whe directly using the AndroidFlutterLocalNotificationsPlugin
APIszonedSchedule()
with a date/time value that is exactly when daylight savings occurs and the APIs from Apple weren't able to resolve what the actual date/time is meant to beAndroidServiceForegroundType
values to align with new additions that are part of Android 14. Thanks to the PR from Rexios
mockito
dev dependencyIOS
as part of the name instead of the newer classes that have the Darwin
prefixAndroidNotificationCategory
AndroidServiceForegroundType
AndroidServiceStartType
AudioAttributesUsage
Day
InterruptionLevel
LinuxNotificationCategory
LinuxNotificationUrgency
Priority
zonedSchedule()
with a date/time value that is exactly when daylight savings occurs and the APIs from Apple weren't able to resolve what the actual date/time is meant to beAndroidServiceForegroundType
values to align with new additions that are part of Android 14. Thanks to the PR from Rexios
mockito
dev dependencyid
property of the ActiveNotification
class is now nullable to help indicate that the notification may not have been created by the plugin e.g. it was from Firebase Cloud Messaging. Thanks to the PR from frankvollebregt