You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final channels = await androidPlugin.getNotificationChannels();
for (final channel in channels) {
print(' * [${channel.id}] [${channel.name}] [${channel.importance}]');
}
Check the importance of registered channel in the logs.
Expected behavior
Channel should be created with Importance.low.
Actual behavior
Channel is created with Importance.min (one level lower as appears in Importance enum).
Additional note:
If a channel is created with Importance.unspecified (the lowest possible value as appears in Importance enum) then the following exception will occur at attempt to get a list of registered channels:
Describe the bug
Creating an Android notification channel with specific
Importance
will result in a channel created with one level lowerImportance
.PlatformException
will be thrown if a channel is being created withImportance.unspecified
(the first value ofImportance
enum).Version info (from pubspec.yaml):
flutter_local_notifications: ^15.1.1
To Reproduce
Expected behavior
Channel should be created with
Importance.low
.Actual behavior
Channel is created with
Importance.min
(one level lower as appears inImportance
enum).Additional note:
If a channel is created with
Importance.unspecified
(the lowest possible value as appears inImportance
enum) then the following exception will occur at attempt to get a list of registered channels:The text was updated successfully, but these errors were encountered: