javascript - Service Worker recurring -
can make service worker, run in background , poll server @ specific interval , return response or show notification(push notification) when chrome browser closed. working website, ask service worker permission , sync request @ specific intervals in background based on request received server show notification.
edit 1: of can see chrome working on this, post old dec 2015. have written introduce in first half of 2016. not available till yet.
we're aiming ship background sync stable version of chrome in first half of 2016. we’re working on variant, “periodic background sync”. allow request “periodicsync” event restricted time interval, battery state , network state. require user permission, of course, down of browser when , how these events fire. e.g., news site request sync every hour, browser may know read site @ 07:00, sync fire daily @ 06:50. idea little further off one-off syncing, it’s coming.
Comments
Post a Comment