Saturday, 10 June 2023

Local Notification - Safari on Mac - Working/Not working same time

I am trying local desktop notification API same code is working for Chrome/Edge/Opera/FF, but in Safari its behaving differently. Same code is working for one site, but not for other. In fact two different subdomain behaving differently.

I tried below -

Notification.permission // default
Notification.requestPermission(); // get permission
Notification.permission // granted
new Notification('It works!');

on two apple's subdomain -

  1. https://developer.apple.com/forums/thread/694834 (developer - subdomain) not working image
  2. https://discussions.apple.com/thread/251411170 (discussion - subdomain) working image

It works for https://discussions.apple.com, not for https://developer.apple.com. No error on console, its like Safari just ignored that without any warning/error.

on Console App in MAC when I checked I can see -

Msg from Console App



from Local Notification - Safari on Mac - Working/Not working same time

No comments:

Post a Comment