I recently learnt how to use OneSignal. One of my clients needed a pop up notification when ever a message came through on their web app.
The above set up is for all browsers except for safari, if you need your notifications to also work on safari then under platform settings you can add safari and configure it with your same sites details.
All set now your users will be receiving notifications!
</ Fun Coding! >