fwind
fwind

Reputation: 1314

Send push notification after time interval

I want to send a HTML push notification in a specific time interval (e.g. every evening). Is this possible without a server? Can I set a timeout in my ServiceWorker, which then creates the push notification?

Upvotes: 1

Views: 732

Answers (1)

Jordan Papaleo
Jordan Papaleo

Reputation: 1511

So think about what you are trying to do. A website does not exist out of the context of someones browser. Lets say you wrote some amazing javascript that would do what you want when you want. Where would that code actively be running?

This type of action requires a server or a browser which is always and never close and runs javascript forever (the second choice is not the right one)

Upvotes: 1

Related Questions