Skip to content

Commit

Permalink
[flutter_local_notifications] fixed issue importance level was mapped…
Browse files Browse the repository at this point in the history
… incorrectly when calling getNotificationChannels() (#2107)

* fixed issue mapping importance level when calling getNotificationChannels

* bumped version

* updated changelog to add mention of updated readme
  • Loading branch information
MaikuB committed Oct 4, 2023
1 parent 553bf77 commit b8ee83b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions flutter_local_notifications/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [14.1.4]

* [Android] fixed issue [2106](https://github.com/MaikuB/flutter_local_notifications/issues/2106) where calling `getNotificationChannels()` reports the wrong importance level or result in an exception if the importance level was unspecified. This hotfix has been taken from the 16.0.0-dev.3 prerelease

# [14.1.3+1]

* Removed duplicate changelog entry on example app being updated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,9 @@ class AndroidFlutterLocalNotificationsPlugin
description: a['description'],
groupId: a['groupId'],
showBadge: a['showBadge'],
importance: Importance.values[a['importance']],
importance: Importance.values
// ignore: always_specify_types
.firstWhere((i) => i.value == a['importance']),
playSound: a['playSound'],
sound: _getNotificationChannelSound(a),
enableLights: a['enableLights'],
Expand Down
2 changes: 1 addition & 1 deletion flutter_local_notifications/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_local_notifications
description: A cross platform plugin for displaying and scheduling local
notifications for Flutter applications with the ability to customise for each
platform.
version: 14.1.3+1
version: 14.1.4
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues

Expand Down

0 comments on commit b8ee83b

Please sign in to comment.