From 733e8466b8a3067cb95cddf3f8794a6f7495a7b9 Mon Sep 17 00:00:00 2001 From: Daniel Fernando Rico Date: Fri, 23 Aug 2024 11:06:02 -0500 Subject: [PATCH] fix: cancelAllNotifications signature optional tag property is added. This is useful when we need to delete remote notifications --- packages/react-native/src/types/Module.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react-native/src/types/Module.ts b/packages/react-native/src/types/Module.ts index c82873e5..2efcb15d 100644 --- a/packages/react-native/src/types/Module.ts +++ b/packages/react-native/src/types/Module.ts @@ -23,8 +23,12 @@ export interface Module { * * This method does not cancel Android [Foreground Service](/react-native/docs/android/foreground-service) * notifications. + * @param notificationIds An array of notifications IDs. This is automatically generated and returned + * when creating a notification, or has been set manually via the `id` property. + * + * @param tag The tag set when creating the notification. This is only relative to Android. */ - cancelAllNotifications(notificationIds?: string[]): Promise; + cancelAllNotifications(notificationIds?: string[], tag?: string): Promise; /** * API used to cancel any displayed notifications.