Wep push notifications not displayng

Trying to create web-push notification by this guide https://vaadin.com/docs/latest/flow/configuration/webpush#set-up-web-push
Into Jmix application I’ve been created WebPushService and executing notifyAll (after I’ve been subscribed and notifications are allowed in web browser)
The method notifyAll calls webPush.sendNotification, and seems like it works fine, (I’ve debugged it and statusCode == 201), but nothing is shown in web browser or any place (there are no web-push notification).

Whats the reasone could it be?

Jmix 2.4.2
Browser Chrome 135.0.7049.86

You may try to do the following (in order) and retry subscribing and sending:

  1. Unsubscribe from push notifications via Java API or directly by navigator.serviceWorker.getRegistration().pushManager.getSubscription().unsubscribe()
  2. Delete a site from notifications (Chrome->Settings->Notifications)
  3. Unregister service worker in Chrome->F12->Application->Service Workers.

Also you may try change the value of “subject” application property to something else.

During development I’ve experienced a glitch somewhere when I also had no notifications shown. Not sure though was it something broken in Vaadin integration, but likely in the other part of the notification chain as just a clean up described above helped me.

Also, just for testing, you can try other browser. But should work with Chrome.

Tryed all of this. Nothning help.
Also tryed another PC.
Also tryed Yandex browser.

as subject I tryed to use parameters
subject=http://localhost:8080/
subject=https://localhost:8080/
subject=mailto:oneLadyStanding@gmail.com

Colud it be the problem, my web-app have protocol http, not https (in dev mode)?

Also cloned and runed this app

I can subscripe and unsubscribe sucessfully, but no web-push displayed

Highly likely - most new browser feature that deeply interact with the client require HTTPS nowadays

When I deleted a site from notification and unregistered Service worker I’ve got this error:

RuntimeException: Unable to execute web push command. JS error is ‘Error: Cannot get registration from service worker.’