Close a voice call notification
This function is only available on context of types
singleConversationandmultiConversations
This function currently only supports incoming call notificationsThe
dismissNotificationfunction is meant to be paired with application channels for voice calls.
function dismissNotification(notificationId: string, cancelToken?: CancelToken): Promise<void>;Parameters
| Parameter | Type | Description |
|---|---|---|
notificationId | String | The identifier of the notification returned by the displayNotification function. |
cancelToken | CancelToken (optional) | Token to cancel the request. |
Usage
This function should be used to closer a notification that has been presented to a Front teammate.
Enable the Run in background setting in your plugin configuration to allow this function to emit notifications when your plugin is closed or not in focus.
Examples
Front.dismissNotification('app:2747:b28e420z-583j-4ga0-8071-854374kcj237');