<br />

> [!NOTE]
> **Important:** This API works **only on ChromeOS**.

<br />

<br />

## Description

Use the `appview` tag to embed other Chrome Apps within your Chrome App. (see [Usage](https://developer.chrome.com/docs/apps/reference/appviewTag#usage)).

<br />

<br />

## Permissions

`appview`  

<br />

<br />

## Availability

Chrome 43+ ChromeOS only

<br />

<br />

<br />

## Types

### EmbedRequest

#### Properties

- data object

  Optional developer specified data that the app to be embedded can use when making an embedding decision.
- embedderId string

  The ID of the app that sent the embedding request.
- allow void

  Allows the embedding request.


  The `allow` function looks like:

  ```typescript
  (url: string) => {...}
  ```

  <br />

  - url string

    Specifies the content to be embedded.
- deny void

  Prevents the embedding request.


  The `deny` function looks like:

  ```typescript
  () => {...}
  ```

  <br />

## Methods

### connect()

Promise

```typescript
chrome.appviewTag.connect(
  app: string,
  data?: any,
  callback?: function,
): Promise<boolean>
```

Requests another app to be embedded.

#### Parameters

- app string

  The extension id of the app to be embedded.
- data any optional

  Optional developer specified data that the app to be embedded can use when making an embedding decision.
- callback function optional


  The `callback` parameter looks like:

  ```typescript
  (success: boolean) => void
  ```

  <br />

  - success boolean

    True if the embedding request succeded.

#### Returns

- Promise\<boolean\>
  Chrome 132+


  Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.

<br />