Sending notifications
suggest changeAfter the user has approved a request for permission to send notifications, we can send a simple notification that says Hello to the user:
new Notification('Hello', { body: 'Hello, world!', icon: 'url to an .ico image' });
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