owencm
owencm

Reputation: 8874

Web push notifications not showing since Chrome switched to OSX notifications

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

Answers (2)

Daniel
Daniel

Reputation: 854

  1. Make sure "DO NOT DISTURB" is toggled off: Notification Center > Notifications (Scroll to the top)

enter image description here

  1. Open Notification Center > Notifications > gear button in the lower-right corner of Notification Center (https://support.apple.com/en-us/HT204079)

On the Notification Settings: Click on Google Chrome (Badges, Sounds, Banners): enter image description here

And toggle on "Allow Notification from Google Chrome": enter image description here

Upvotes: 26

owencm
owencm

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

Related Questions