|
|
|
|
|
by jessehattabaugh
1103 days ago
|
|
> you should be able to just schedule a web notification locally. But you can't, you can only subscribe to a server. This isn't entirely true; WebPush is server only, but the Notification API can be used locally. You could schedule a timeout that causes a notification, as long as the page stays open, and to do it while the page is closed you could use a ServiceWorker. Potentially a ServiceWorker may or may not stay active depending on the user's battery settings, but native notifications too can also be disabled by the user. |
|