Plugin.FirebasePushNotifications icon indicating copy to clipboard operation
Plugin.FirebasePushNotifications copied to clipboard

[Bug] Android: Updating notification channels result in `ArgumentException`

Open Bludator opened this issue 5 months ago • 4 comments

Description

The documented behavior is: If one creating a notification channel with existing ID the channels gets updated.

Now it results in

**System.ArgumentException:** 'CreateNotificationChannels failed: notificationChannelRequests contains NotificationChannelRequest with duplicate ChannelId: ["verification", "chat"] (Parameter 'notificationChannelRequests')'

The culprit is here. It merges new and existing channels next statement EnsureNotificationChannelRequests(...) checks for duplicates.

Basic Information

  • Version with issue: latest one (it is in the develop branch)

Bludator avatar Jul 23 '25 10:07 Bludator