Re: [w3c/ServiceWorker] setTimeout/setInterval are unreliable in ServiceWorkers (#838)

> What if I want to run function(which checks indexeddb and if it finds the record in there, makes a fetch request to api endpoint) every 30 minutes

The service worker won't stay alive for 30 minutes, so you'll never get that callback.

If it did stay alive that long, it'd be bad for user privacy and device resources such as memory and battery.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/838#issuecomment-625139302

Received on Thursday, 7 May 2020 09:27:53 UTC