dismissNotification

Close a voice call notification

📘

This function is only available on context of types singleConversation and multiConversations

📘

This function currently only supports incoming call notifications

The dismissNotification function is meant to be paired with application channels for voice calls.

function dismissNotification(notificationId: string, cancelToken?: CancelToken): Promise<void>;

Parameters

ParameterTypeDescription
notificationIdStringThe identifier of the notification returned by the displayNotification function.
cancelTokenCancelToken (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');