Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Background events in progressive web apps? (building an alarm clock app)

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!

like image 536
Joshua Longanecker Avatar asked Apr 29 '16 17:04

Joshua Longanecker


People also ask

What is the function of Clock app?

Clock is a timekeeping mobile app included with iPhone since iPhone OS 1, with iPad since iOS 6, and Mac since macOS Ventura. The app includes world clock, alarm, stopwatch, and timer functions. A Bedtime feature was added in iOS 10. Apple Inc.

What is alarm and Clock app?

Windows Clock (known as Clock & Alarms on Pocket PC 2000, Alarms on Windows 8.1, and, until July 2022, Alarms & Clock on Windows 10) is a time management app for Microsoft Windows, with five key features: alarms, world clocks, timers, a stopwatch, and focus sessions.


1 Answers

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.

like image 165
mjs Avatar answered Sep 28 '22 15:09

mjs