Google Chrome 通过开发面板问题进行扩展软电话更新

Google Chrome Extension Softphone Update via Dev Dashboard Issue

我正在尝试开发 Google Chrome 扩展应用程序 VoIP 软电话。我将使用内联安装功能 (https://developer.chrome.com/webstore/inline_installation) and will be publishing on the Chrome Developer Dashboard (https://chrome.google.com/webstore/developer/dashboard)

我的问题是由于软电话必须一直连接的性质,每次我需要发布更新版本的软电话用户都会断开连接,这将对用户体验造成很大的影响。

有人 运行 在 Google Chrome 中发布软电话扩展应用时遇到同样的问题吗?

仪表板提供了增加更新的能力。因此在您的控制下,任何时候只有一小部分用户会受到影响。

除了缓慢的升级之外,您还可以在下班时间进行,以最大限度地减少用户体验。

这不会解决更新期间断开连接的问题,但可以将影响降至最低。

可以随时下载更新,但只有在后台页面变为非活动状态时才会重新加载扩展。

我猜您正在使用 Web 套接字发送信号。由于连接需要始终可用,您可能正在使用持久性 background page. This is enough to prevent a sudden unload. If you use event pages, then you need to jump through some hoops to get the page to stay alive even if the Web Socket is not busy all the time (crbug.com/204573),但在这种情况下,扩展不会突然重新加载。

如果您想在更新后重新加载扩展,请添加chrome.runtime.onUpdateAvailable listener and call chrome.runtime.reload when it is convenient (e.g. when the user has unregistered their soft phone, and/or when the user is idle,等等)。