Action required: Update your extensions to use the new Device SDK for Device Permissions

Action required: Update your extensions to use the new Device SDK for Device Permissions

Hi developers,

To strengthen user privacy and security, Zoho Desk is introducing a new Device SDK that allows extension widgets to request access to device features such as camera, microphone, location, and MIDI devices, with user consent managed through a consent popup.

Currently, extensions use direct browser APIs, such as navigator.mediaDevices.getUserMedia() and navigator.geolocation, to access these device features. As part of the upcoming security changes, these browser APIs may no longer work as expected because the default iframe permissions will be removed. This may affect all the extensions that rely on direct browser API access.

What you need to do

Extensions that access the camera, microphone, location, or MIDI devices through direct browser APIs must be migrated to use the new Zoho Desk Device SDK to request the required permissions using the corresponding SDK properties, such as ZOHODESK.get("device.camera"), ZOHODESK.get("device.location"), etc.

Follow these steps to update the extension:
  1. Configure device permissions: Open the extension's plugin-manifest.json file and declare the required device permissions in the devicePermissions array. For configuration details and supported values, refer to Device Permissions in the Plugin Manifest.
  2. Implement the Device SDK: Update the widget code to request permission using the corresponding Device SDK properties (device.camera, device.microphone, device.location, or device.midi) before accessing the device features. For implementation details, sample code, responses, and permission behavior, refer Device SDK in extension guide.
  3. Test the extension: Verify that the extension requests the required device permissions and that device-related functionality works as expected after permission is granted.

Migration Timeline  

Warning
Please complete the migration within 2 weeks from the date of this announcement.
After this period, we will remove the default iframe permissions for the affected device features. Extensions that continue to rely on direct browser API access may experience disruptions to their device-related functionality.

We encourage all extension developers whose extensions access these device features through direct browser APIs to complete the migration (i.e., update your extension) within the specified timeline to avoid disruptions.

If you have any questions or need clarification regarding the migration, feel free to leave a comment below or email us at support@zohodesk.com. We’ll be happy to assist you.

Thank you for your cooperation in improving the privacy and security of Zoho Desk extensions.

Regards,
Monica | Zoho Desk