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 -
- https://developer.apple.com/forums/thread/694834 (developer - subdomain)
not workingimage - https://discussions.apple.com/thread/251411170 (discussion - subdomain)
workingimage
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 -
from Local Notification - Safari on Mac - Working/Not working same time

No comments:
Post a Comment