---
updatedAt: 2026-04-20T20:56:17.000Z
agentTools:
  projectIndex: https://dev.frontapp.com/llms.txt
---

# displayNotification

Display a voice call notification to the Front teammate

<Callout icon="📘" theme="info">
  This function is only available on context of types `singleConversation` and `multiConversations`
</Callout>

> 📘 This function currently only supports incoming call notifications
>
> The `displayNotification` function is meant to be paired with application channels for voice calls.

```typescript
function displayNotification(type: string, contact?: Contact, cancelToken?: CancelToken): Promise<string>;
```

## Parameters

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `type`
      </td>

      <td>
        String
      </td>

      <td>
        The type of notification. Currently only supports `INCOMING_CALL`
      </td>
    </tr>

    <tr>
      <td>
        `contact`
      </td>

      <td>
        Object
      </td>

      <td>
        An object identifying the caller.  
        `contact: {  
                                                                          name: string,  
                                                                          handle?: string  
                                                                        }`
      </td>
    </tr>

    <tr>
      <td>
        `cancelToken`
      </td>

      <td>
        [CancelToken](https://dev.frontapp.com/reference/plugin-sdk-cancel-token) (optional)
      </td>

      <td>
        Token to cancel the request.
      </td>
    </tr>
  </tbody>
</Table>

## Usage

This function should be used to open a notification to alert the user of important plugin activity that requires immediate attention, such as receiving an incoming voice call.

For voice calls, the notification displays the caller's name and number, as well as a button that reads **Open *YOUR\_APP\_NAME*** to open the sidebar plugin.

<Image align="center" width="300px" src="https://files.readme.io/f7477257b2ab30602b6dbb3761008f1c798159b27b15bc87ed47a1a4741362f7-image.png" />

<br />

<Callout icon="📘" theme="info">
  Enable the **Run in background** setting in your [plugin configuration](https://dev.frontapp.com/docs/create-and-manage-apps#create-a-plugin) to allow this function to emit notifications when your plugin is closed or not in focus.
</Callout>

## Return value

The function returns the string identifier for the notification. Use this identifier in the [dismissNotification](https://dev.frontapp.com/reference/dismissnotification) function to close the notification.

## Examples

```javascript
Front.displayNotification('INCOMING_CALL', {
  contact: {
    name: 'Harry S. Truman',
    handle: '1-900-860-0911'
  }
});
```