cancelDisplayedNotification
API used to cancel a single displayed notification.
cancelDisplayedNotification(notificationId: string, tag?: undefined | string): Promise<void>;
This method does not cancel Foreground Service notifications.
Property | Description | Optional |
---|---|---|
notificationId | The unique notification ID. This is automatically generated and returned
when creating a notification, or has been set manually via the | |
tag | The tag set when creating the notification. This is only relative to Android. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License and code samples are licensed under the Apache 2.0 License.
All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.