PWA offline Service Workers have a long way to go

Service workers have no ability to schedule tasks.

In Android, AlarmManager lets your app schedule future work.

iOS has similar functionality.

And in other systems you have cron.

Service workers apparently can only be invoked by a server push. And even then, it’s only supported in Chrome!

I’m working on an app that checks a website at certain times. I don’t own the website. Writing the app for Android, there’s no need for a server. That saves me a lot of maintenance work, and it lets me avoid storing user data. Everything is done locally.

I heard that service workers support background tasks now. So I figured I could rewrite my thing as a Progressive Web App and get support for iOS and Desktop.

Apparently not! And it’s not on the roadmap either. As far as I can tell, the working groups aren’t even talking about it.

Guess I’m stuck with Android for now!

Leave a Reply