We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53d24c0 commit 0ec5560Copy full SHA for 0ec5560
lib/src/method_channel/web_callkit_method_channel.dart
@@ -83,10 +83,15 @@ class MethodChannelWebCallkit extends WebCallkitPlatform {
83
void _onDismissListener(CKCallResult result) {
84
printDebug("Dismissed notification: ${result.uuid}", tag: NotificationManager.tag);
85
final persist = result.containsFlag(NotificationManager.CK_EXTRA_PERSIST);
86
- if (!persist) {
87
- _dismissNotification(result.uuid);
+ if (result.uuid != null) {
+ final uuid = result.uuid!;
88
+ if (!persist) {
89
+ _dismissNotification(uuid);
90
+ } else {
91
+ _onDismissedListener?.call(uuid, ActionSource.notification);
92
+ }
93
} else {
- _onDismissedListener?.call(result.uuid, ActionSource.notification);
94
+ // case when uuid is null, e.g. group display
95
}
96
97
0 commit comments