Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Notifications not showing up in Chrome #259

Open
kg-kartik opened this issue Jul 31, 2020 · 7 comments
Open

Notifications not showing up in Chrome #259

kg-kartik opened this issue Jul 31, 2020 · 7 comments

Comments

@kg-kartik
Copy link

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.

@theLufenk
Copy link
Collaborator

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.

@Exlord
Copy link

Exlord commented May 15, 2021

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

@kg-kartik
Copy link
Author

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.

@mohibsheth
Copy link

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.

@Qazzquimby
Copy link

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.

@mahdihasanzadeh-dev
Copy link

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.

@przemokon
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants