1 min readOct 4, 2020
You can send local push notifications in a much simpler way, by adding this code
var options = {
body: 'Simple notification, this can not ge simpler !'
}
var n = new Notification('Simple notification', options);
if (Notification.permission !== "denied") {
Notification.requestPermission()
}
take a look at this link
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API