Skip to main content
govindm37737273
Participant
November 8, 2017
Question

Using service workers in extension panels

  • November 8, 2017
  • 2 replies
  • 829 views

Hi

Can service workers be used in HTML extension panel? I want to do some background fetches from the panel. services workers seems to be an ideal choice. Wondering if it is supported and if anyone used it successfully?

Thanks

Anand

This topic has been closed for replies.

2 replies

sberic
Legend
December 9, 2017

You should be able to use Service Workers, yes. Very likely you can use them in CEP 6+ hosts. This is because CEP 6 is based on Chromium 41 (Chrome 41), which had partial support. CEP 8 saw the CEF (Chromium Embedded Framework) version bump to 57 which has full support. See this page for the overview and this one for a more granular view of API compatibility.

Trevor:
Legend
November 12, 2017

Hi Anand

I've not used service workers but I can't see why they wouldn't work on the extensions which are chromium based.

See Adding a Service Worker and Offline into your Web App  |  Web Fundamentals       |  Google Developers

Maybe it will help you

Participant
November 14, 2017

Trevor,

Thanks for the reply. Thanks for the link. I did look into some articles on using service workers. I was just wondering if anyone managed to use it inside a panel.

I will try it.

Anand