Hi Chrome Extension Team,
Scenario:
We have chrome extension built using MV2 and runs job every 10 minutes in background script which will invoke HTTP based REST API end points and it works.
Issue:
We are redesigning the extension using MV3 and we tried to run job every 10 minutes in service worker but service worker gets terminated after 30 seconds (As per service worker working policy).
Workaround Tried:
Used Chrome Alarm API to execute the code for every 1 minute to keep the service worker alive so that the job runs for every 1 minute to invoke HTTP based REST API end point. It will work for some time and service worker gets terminated randomly like after 2 / 3 / 4 / 6 hours.
Hence service worker in MV3 is very inconsistent and not reliable to run job for given specific interval of time.
Need Clarification:
Thanks in Advance,
Shashikiran
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/385235f1-58af-4e5b-81da-dc9c46f5da6dn%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/CAPAuxoA-e2wdPyZg9CZagh3OfEBoNYkk70v8_i%2B2Qi-%2BNcc%3DpA%40mail.gmail.com.