Notifications not showing up in Chrome
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.
Hello @kg-kartik Could you please confirm if:
-
window.Notification.permissionis returned to betruein the devtools - Running
new Notification('test')shows a notification.
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
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.
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.
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.
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.
In my case it was Focus settings in Windows 11. This setting hides all notifications. Maybe this will help somebody...