twilio / twilio-taskrouter.js

JS SDK v2 for Twilio's TaskRouter skills based routing system.

Home Page:https://www.twilio.com/docs/taskrouter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chrome Extension Manifest V3 Support

GhazanfarKhan opened this issue · comments

In manifest V2, extensions have the ability to run the Twilio Voice JS SDK in the background. But with the introduction of manifest V3 (MV3), running the Twilio Voice JS SDK in the background using service workers does not work out of the box due to certain limitations which include DOM access and the ability to keep the service worker alive.

What will be the flow to register worker events in service worker or offscreen api?

In Chrome V3 u need to create a document by (chrome api) chrome.offscreen.createDocument() and in this document, u can run this SDK.

In manifest V2, extensions have the ability to run the Twilio Voice JS SDK in the background. But with the introduction of manifest V3 (MV3), running the Twilio Voice JS SDK in the background using service workers does not work out of the box due to certain limitations which include DOM access and the ability to keep the service worker alive.

What will be the flow to register worker events in service worker or offscreen api?

So it's not an issue use chrome.offscreen document witch allows u to use doom, mate.