Also just added a star.
I develop a productivity timer as an extension, and I just started migrating to manifest V3.
In my case users receive notifications when a timestamp in the future has been reached.
I used to have a persistent background script checking the condition. This check will now be done when the onAlarm event wakes up the service worker.
To me this is a better design, but I will definitely be losing accuracy in the following manners:
- The time at which the alarm fires is arbitrary per the docs.
- If the alarm needs to be reprogrammed to fire for <1 min, this will not possible and users will experience a delay.
Maybe a setTimeout() could be used instead, but there is not guarantee the service worker will stay active.