Reputation: 8874
Since Chrome switched to the native OSX notifications, sometimes the notifications I try to show using web-push and my service worker do not appear.
They appear consistently in previous versions of Chrome.
Is there anything I'm supposed to have changed since they moved to make this work?
Upvotes: 9
Views: 10885
Reputation: 854
On the Notification Settings: Click on Google Chrome (Badges, Sounds, Banners):
And toggle on "Allow Notification from Google Chrome":
Upvotes: 26
Reputation: 8874
There are a few reasons why notifications may not show, but it's likely that your site has the existing notifications still open in the notification center (click the very top right icon of your screen to verify they are there), and that you're updating these with a static tag rather than showing new notifications.
If clearing the notifications from the notification center causes this issue to go away then the issue is that you need to add renotify: true
to the options you pass in to showNotification, or clear the previous notifications programmatically and show a new one either with the same tag or a new tag.
Upvotes: 9