7

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!

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
  • 60,733
  • 27
  • 87
  • 118
  • Thanks! That does look like it would work for what I had in mind, but I can't find much information about it online. Is there a timeline on when it could become a feature, or is there any way to enable it as an experimental feature on a personal device? – Joshua Longanecker May 10 '16 at 13:56
  • @JoshuaLonganecker Not that I know of, no… – mjs May 11 '16 at 12:50
  • Is there any news about when this is going to be available? – Blockchain Developer Jun 12 '21 at 10:54