SDK and API

Last published : Dec 04, 2026

HDX™ SDK

Citrix Workspace app for ChromeOS (IWA) supports an experimental API that allows third-party Chrome apps to lock, unlock, and disconnect from:
  • Citrix Virtual Apps and Desktops sessions
  • Citrix DaaS (formerly Citrix Virtual Apps and Desktops service) sessions
Using this API, you can launch Citrix Workspace app for ChromeOS (IWA) in both embedded mode and kiosk mode. Sessions launched in embedded mode function in ways similar to sessions launched in kiosk mode.
For the SDK documentation, see HDX SDK for Citrix Workspace app for ChromeOS.
For HDX SDK examples, refer to the Citrix download page.

Enhancements to Chrome HDX SDK APIs

Citrix Workspace app for ChromeOS (IWA) supports identifying all active sessions, disconnecting specific sessions, disconnecting all active sessions, and logging out the user from all stores in the Citrix Workspace™ app (only on-premises stores).
For more information on using APIs, see Enumerate sessions.

Moving a third-party extension from Citrix Workspace (Chrome App) to Citrix Workspace (IWA)

  1. Update the SDK. Replace CitrixChromeSDK.js with the version from the current build and the corresponding IWA TP2 build.
  2. Allow the IWA to connect. In the extension's manifest.json, add the Citrix Workspace IWA origin to externally_connectable.matches:
    {
      "externally_connectable": {
        "matches": [
          "isolated-app://ov6jyjge37xqptadeo5e2n6ayoxdjqw62pgm4afavkqbnqfpesraaaic/*"
        ]
      }
    }
  3. Target the right Citrix Workspace app by passing the matching ID to citrix.receiver.createSession(...):
    • Citrix Workspace Chrome App (current): haiffjcadagjlijoggckpgfnoeiflnem
    • Citrix Workspace IWA: isolated-app://ov6jyjge37xqptadeo5e2n6ayoxdjqw62pgm4afavkqbnqfpesraaaic
  4. Publish the updated extension. No other changes are needed; the SDK APIs and contracts are unchanged.
Refer to the shared samples for more details.

Citrix Virtual Channel SDK

The Citrix Virtual Channel Software Development Kit (SDK) supports writing server-side applications and client-side drivers for additional virtual channels using the ICA® protocol.
The server-side virtual channel applications run on Citrix Virtual Apps or Citrix Virtual Apps and Desktops servers. This version of the SDK supports writing new virtual channels for Citrix Workspace app for ChromeOS (IWA). If you want to write virtual drivers for other client platforms, contact Citrix.
The Virtual Channel SDK provides:
  • An easy interface that can be used with the virtual channels in the Citrix Server API SDK (WFAPI SDK) to create new virtual channels.
  • Working source code for several virtual channel sample programs that demonstrate programming techniques.
  • The Virtual Channel SDK requires the WFAPI SDK to write the server side of the virtual channel.

Known issue

When you use ChromeOS version 146 or later, custom virtual channels built with earlier Citrix Virtual Channel SDK versions might not function as expected with a Manifest V3 Chrome extension. Compatibility issues between Manifest V3 and Chrome extension API behavior cause the issue. We recommend updating to the latest VCSDK 2603 version from the Citrix Downloads page for a smooth Virtual Channels experience.

Enhancements to Virtual Channel SDK

Citrix Workspace app for IWA supports Window Management APIs in the Virtual Channel SDK. Web APIs enable IT administrators to create interactive applications and customize them for their end users.

Procedure to consume the API in a third-party Chrome app

  1. Install the latest version of Citrix Workspace app for ChromeOS. See the Citrix downloads page for details.
  2. Add the third-party Chrome app to the allow list by adding a policy file for Citrix Workspace app for ChromeOS (IWA). Use Chrome management settings to add the policy.
    For more details, see Manage Chrome Apps by organizational unit on Google support.
    To add the third-party Chrome app to the allow list, use this sample policy.txt JSON data:
    {
      "settings": {
        "Value": {
          "settings_version": "1.0",
          "store_settings": {
            "externalApps": [
              "<3rdParty_App1_ExtnID>",
              "<3rdParty_App2_ExtnID>"
            ]
          }
        }
      }
    }
    Note:
    <3rdParty_App1_ExtnID> is an example of a third-party app ID that can send messages to Citrix Workspace app for ChromeOS (IWA). Get your app ID from chrome://extensions.
  3. Launch an application or desktop session in Citrix Workspace app for ChromeOS as follows:
    • Get the workspaceappID:
      var workspaceappID = "haiffjcadagjlijoggckpgfnoeiflnem";
      Note:
      In this example, workspaceappID indicates the store version of Citrix Workspace app for ChromeOS (IWA). If you're using a repackaged version, use the appropriate workspaceappID.
    • Convert ICA data from INI to JSON format.
      Note:
      Typically, the ICA file is retrieved from StoreFront as an INI file. Use the following helper function to convert an ICA INI file into JSON.
      // Helper function to convert ICA data in INI format to JSON.
      function convertICA_INI_TO_JSON(data) {
        var keyVals = {};

        if (data) {
          var dataArr;
          if (data.indexOf("\r") === -1) {
            dataArr = data.split("\n");
          } else {
            dataArr = data.split("\r\n");
          }

          for (var i = 0; i < dataArr.length; i++) {
            var nameValue = dataArr[i].split("=", 2);
            if (nameValue.length === 2) {
              keyVals[nameValue[0]] = nameValue[1];
            }

            // LaunchReference can contain "="; preserve the complete value.
            if (nameValue[0] === "LaunchReference") {
              var index = dataArr[i].indexOf("=");
              keyVals[nameValue[0]] = dataArr[i].substr(index + 1);
            }
          }

          return keyVals;
        }

        return null;
      }
    • Send an ICA message from the third-party Chrome app to Citrix Workspace app for ChromeOS (IWA).
      var icaFileJson = {}; // ICA file passed as JSON key-value pairs.
      var message = {
        method: "launchSession",
        icaData: icaFileJson
      };

      chrome.runtime.sendMessage(workspaceappID, message, function (launchStatus) {
        if (launchStatus.success) {
          // Handle success.
          console.log("Session launch was attempted successfully");
        } else {
          // Handle errors.
          console.log("Error during session launch:", launchStatus.message);
        }
      });
For more details on sendMessage API commands, see:

Moving a third-party Virtual Channel extension to Citrix Workspace (IWA)

  1. Update the SDK. Replace CitrixVCSDK.js with the version from the IWA TP2 build.
  2. Allow the IWA to connect. In the extension's manifest.json, add the Citrix Workspace IWA origin to externally_connectable.matches:
    {
      "externally_connectable": {
        "matches": [
          "isolated-app://ov6jyjge37xqptadeo5e2n6ayoxdjqw62pgm4afavkqbnqfpesraaaic/*"
        ]
      }
    }
  3. Publish the updated extension. No other changes are needed; the Virtual Channel SDK APIs and contracts are unchanged.

Limitations on Citrix Workspace app for Isolated Web Apps

  1. The Show and Hide methods aren't supported in IWA.
  2. Embedded HDX SDK session launches aren't supported in IWA.
  3. HDX SDK launches aren't supported in Kiosk mode in IWA.

Manifest V3 support for SDK scenarios

Citrix Workspace app for ChromeOS (IWA) supports the HDX SDK with Chrome extensions that use Manifest V3.
For more information, see Citrix Workspace app for ChromeOS HDX SDK in the developer guides documentation.

Support for Unified Communications (UC) SDK

The Citrix Unified Communications SDK allows Unified Communications vendors, cloud contact center providers, Communications Platform as a Service (CPaaS) providers, and other WebRTC-based communications vendors to integrate with Electron-based desktop or browser-based applications.
For more information, see Unified Communications (UC) SDK, a Tech Zone article.

Redirection of WebHID APIs

Unified Communications SDK for Citrix Workspace app for ChromeOS (IWA) implements redirection of WebHID APIs as defined in Citrix-WebRTC, with the following known limitation:
  • If multiple HID devices of the same type exist, the user can't select a specific device for testing.
Note:
This feature is disabled by default.

How to configure

You can enable the feature by using:
  • Google Admin Policy
  • Global App Configuration service

Google Admin Policy

For managed devices and users, administrators can enable the feature using the Google Admin Policy:
  1. Sign in to the Google Admin Console.
  2. Go to Device management > Chrome Management > User Settings.
  3. Add the following JSON strings to the policy.txt file under the engine_settings key.
    Note:
    You can also apply this configuration in these locations:
    • Device > Chrome > Apps and extensions > Users and browsers > Search for the extension > Policy for extensions.
    • Device > Chrome > Apps and extensions > Kiosks > Search for the extension > Policy for extensions.
    • Device > Chrome > Apps and extensions > Managed guest sessions > Search for the extension > Policy for extensions.
  4. Set the webHID attribute to true. For example:
    {
      "features": {
        "msTeamsOptimization": {
          "webHID": true
        }
      }
    }
  5. Set the hidDeviceBlockList attribute to specify which HID devices to block. For example:
    {
      "features": {
        "msTeamsOptimization": {
          "hidDeviceBlockList": []
        }
      }
    }
    The blocklist format is ["VID:PID", "VID:PID", ...]. Each VID and PID is a hexadecimal number of up to four digits, with an optional 0x prefix. The VID is required; the PID is optional. Examples include ["35ab:21ff", "45ac", "0x567:123a", "0x1234:0x5678"].
  6. Save the changes.

Global App Configuration service

Administrators can enable the feature by navigating to Workspace Configuration > App Configuration > HDX and Multimedia > MS Teams > Enable webHID redirection and HID Device Blocklist. Select the checkbox and the respective toggle button to enable the feature.