Web notification doesnt work on chrome (but works on firefox)

Ive created pwa angular app, and I want to add notification support. I have a backend server - Java Spring and I send from the server web socket messages to the clients, each message I want to display a notification.

I have tried to use this api https://github.com/sagiegurari/simple-web-notification

navigator.serviceWorker.getRegistration().then((registration) => {
    ...
        webNotification.showNotification(title, {
           serviceWorkerRegistration: registration,

I cant figure out why it isnt working for me. It works on Firefox, but not on Chrome.. Please help.