But because building the whole push notifications infrastructure ourselves is tedious. Its better to use services like onesignal. Which is fre for both mobile and Web.
Hi Girish Patil, thanks for helping, I have already implemented display notification after getting permission but, sending push notification seems confusing and tedious to me. Surely going to try onesignal .
Girish Patil
Full-stack engineer
Hey push notifications are independent of what framework/library you use. The vanilla way will always boil down to something like this
Notification.requestPermission(function(status) { console.log('Status ', status); });But because building the whole push notifications infrastructure ourselves is tedious. Its better to use services like onesignal. Which is fre for both mobile and Web.
Here are their getting started guides. That might help you. documentation.onesignal.com/docs/web-push-overview
Complete intro to push notifications developers.google.com/web/ilt/pwa/introduction-to…
Hope this helps