- [Android] Breaking change renamed the
requestPermission()method associated with theAndroidFlutterLocalNotificationsPluginclass torequestNotificationsPermission(). This was done to be more explicit given another method (requestExactAlarmsPermission()) has been added that also requests a permission (more details below). - [Android] Breaking change the plugin now only declares the bare minimum in its
AndroidManifest.xml. This means applications making use of either scheduled notifications, full-screen intent notifications or notification actions will now require changes in the application's ownAndroidManifest.xmlfile. Please check the AndroidManifest.xml setup section of the readme for more details. The reason this was done was because not all applications will leverage all of the plugin's features. Doing this will now allow applications to only request the appropriate permissions needed for their application. This addresses issue 1687 - [Android] added the ability to request permission to schedule exact alarms via the
requestExactAlarmsPermission()method that has been added to theAndroidFlutterLocalNotificationsPluginclass that represents the Android implementation of the plugin. This has been done in response to behaviour changes introduced in Android 14 (API level 34) when comes to using exact alarms. See the official documentation about these changes here. This change addresses issue 1906 - [Android] bumped Java desugaring dependency and updated readme accordingly to also mention Gradle version that is used by plugin
- [Android] fixed issue an issue similar to 2033 that was addressed in 15.0.1 where notifications on scheduled using older version of the plugin via the
periodicallyShow()method would fail to have the next subsequent ones scheduled. This issue started occuring in 14.0 where support for inexact notifications was added using theScheduleModeenum that was added and resulted in the deprecation ofandroidAllowWhileIdle. A mechanism was added to help "migrate" old notifications that hadandroidAllowWhileIdlespecified but didn't account for how there are recurring notifications that were scheduled using older versions of the plugin prior toandroidAllowWhilebeing added. This was also released as part of the 15.1.1 and 14.1.3 hotfix releases - [Android] fixed issue 2106 where calling
getNotificationChannels()reports the wrong importance level or result in an exception if the importance level was unspecified. This was also released as part of the 15.1.2 and 14.1.4 hotfix releases - [iOS][macOS] addresses issue 2097 by updating API docs for the
presentSoundanddefaultPresentSoundproperties that belong to theDarwinNotificationDetailsandDarwinInitializationSettingsclasses respectively to clarify the background behaviour and how have a sound play even when app is the background yet these properties are set to false - Updated example app so that the Android side specifies minimum SDK version version that aligns with what's specified by the Flutter SDK
- Fixed Dart API docs for
DarwinNotificationDetailsclass wherethis Thiswas being repeated. Thanks to the PR from Adrian Jagielak - Fixed example code shown at the "Handling notifications whilst the app is in the foreground" section of the readme. Thanks to the PR from Tinh Huynh