- Breaking change the
idproperty of theActiveNotificationclass 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 - Breaking change the following classes are now enums
AndroidNotificationCategoryAndroidServiceForegroundTypeAndroidServiceStartTypeAudioAttributesUsageDayInterruptionLevelLinuxNotificationCategoryLinuxNotificationUrgencyPriority
- [Android] added support for scheduling inexact notifications. The corresponding APIs for scheduling notifications now have a new
AndroidScheduleModeto allow for configuring this if required. TheandroidAllowWhileIdleargument is now deprecated when using the APIs available for scheduling notifications via theFlutterLocalNotificationsPluginAPIs 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 theAndroidScheduleModebut the exact alarm permissions had been revoked, an error log message will be written and notification will no longer be scheduled. Do note that theandroidScheduleModeparameter has a default value ofAndroidScheduleMode.exactto align with what was the default value ofandroidAllowWhileIdlebefore (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 theandroidAllowWhileIdleparameter is removed in the future,androidScheduleModewill become a required named parameter to ensure developers explicitly specify the value they want- [Android] Breaking change related to this is whilst
androidAllowWhileIdleis deprecated via theFlutterLocalNotificationsPluginAPIs,allowWhileIdlehas been removed and completely replaced by ascheduleModeparameter when whe directly using theAndroidFlutterLocalNotificationsPluginAPIs
- [Android] Breaking change related to this is whilst
- [Android] adds a namespace for compatibility with AGP (Android Gradle plugin) 8.0. Thanks to the PR from asaarnak
- [iOS][macOS] fixed issue 1950 where plugin would crash when calling
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 be - [Android] updated
AndroidServiceForegroundTypevalues to align with new additions that are part of Android 14. Thanks to the PR from Rexios - [macOS] fixed issue 1858 where macOS app builds were showing deprecation warnings. Thanks to the PR from Steve Kohls
- Bumped
mockitodev dependency - Align Dart SDK constraint with minimum Flutter version (i.e. 3.0)
- Fixed readme that was reference old classes with
IOSas part of the name instead of the newer classes that have theDarwinprefix - Removed dead link that had archived official documentation around guidance on creating the appropriate Android icons that would help with creating notification icons. Now replaced with a link to using Image Asset Studio to create notification icons