push.js icon indicating copy to clipboard operation
push.js copied to clipboard

Notifications not showing up in Chrome

Open kg-kartik opened this issue 5 years ago • 7 comments

Does push.js shows notifications in chrome if you are using localhost,i.e , http connection..In my case it is working well in edge but i cant see any notification in chrome ? So, I infer that chrome is blocking notification on sites with insecure http connection as it blocks Notifications from Notification API.

kg-kartik avatar Jul 31 '20 18:07 kg-kartik

Hello @kg-kartik Could you please confirm if:

  1. window.Notification.permission is returned to be true in the devtools
  2. Running new Notification('test') shows a notification.

theLufenk avatar Aug 01 '20 14:08 theLufenk

Does push.js shows notifications in chrome if you are using localhost,i.e , http connection..In my case it is working well in edge but i cant see any notification in chrome ? So, I infer that chrome is blocking notification on sites with insecure http connection as it blocks Notifications from Notification API.

Test and confirm that Notifications do work in http://localhost in chrome

Exlord avatar May 15 '21 09:05 Exlord

Does push.js shows notifications in chrome if you are using localhost,i.e , http connection..In my case it is working well in edge but i cant see any notification in chrome ? So, I infer that chrome is blocking notification on sites with insecure http connection as it blocks Notifications from Notification API.

Test and confirm that Notifications do work in http://localhost in chrome

They dont work.

kg-kartik avatar May 17 '21 06:05 kg-kartik

Doesn't work for me either on Chrome.

window.Notification.permission is returned to be true in the devtools returns "granted"

Running new Notification('test') shows a notification. no, it does not.

Works on Firefox but not on Chrome and Edge.

mohibsheth avatar Jun 15 '21 05:06 mohibsheth

My observations, in case they're helpful. All on window 10

Chrome 101 Push.create('test'); Asks permission the first time, then does nothing. window.Notification.permission is 'granted' new Notification('test'); does nothing

Vivaldi 5.2 Did not ask for permission when Push.create was called. After manually enabling in settings, notifications worked as expected.

Firefox 100 Did ask permission and did create the notification, though they were small and silent browser notifications instead of desktop (probably expected.

Qazzquimby avatar May 14 '22 20:05 Qazzquimby

Grant Chrome Notification Permission on Windows

Go to Settings > System > Notifications & actions and make sure the Notifications option is toggled on. afterward, scroll to the Get notifications from these senders section and make sure Google Chrome is toggled on.

mahdihasanzadeh-dev avatar Jun 23 '22 08:06 mahdihasanzadeh-dev

In my case it was Focus settings in Windows 11. This setting hides all notifications. Maybe this will help somebody...

przemokon avatar Sep 09 '22 07:09 przemokon