Sending notifications
suggest changeAfter the user has approved a request for permission to send notifications, a browser page can show a notification. The constructor throws if permission is not "granted". icon is a URL.
new Notification('Hello', { body: 'Hello, world!', icon: 'icon.ico' });
This will send a notification like this:
Hello Hello, world!
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents