9

I am playing around with progressive web apps, and one scenario I wanted to try building was an alarm clock app.

I figure to make this app work properly, it will have to run in the background and become active once the internal conditions (current time === alarm time) have been met.

Is this possible? Or do progressive web apps not yet have the freedom to operate in the background/access phone features through API's.

Thanks!

  • To everyone who wants this functionality, please star and comment on the Google issue requesting it to motivate them to act: https://bugs.chromium.org/p/chromium/issues/detail?id=889077 – Richard Jun 09 '22 at 08:50

1 Answers1

6

Setting background timers isn't yet possible. The ScheduledTask API is probably do what you want, but it's still being discussed, implemented and so on.

mjs
  • 63,493
  • 27
  • 91
  • 122