| Summary: | Many bugs introduced in Safari push notifications | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | collimarco91 |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Major | CC: | ap |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 12 | ||
| Hardware: | Mac | ||
| OS: | Unspecified | ||
|
Description
collimarco91
2019-03-27 07:51:57 PDT
Also note that Chrome already tried to introduce the requirement of user gestures for the prompt and then this was removed (from v37) because it didn't made sense: https://bugs.chromium.org/p/chromium/issues/detail?id=274284#c45 So, if Chrome has removed this restriction and you have never had this restriction, why are you introducing it now (breaking most applications)? My request is to revert this changes completely. However if you really want to keep something, at least make it compatible with the existing websites and SDKs. In particular: 1. DO NOT RAISE AN EXCEPTION when you need to display the prompt on page load. Instead of raising the exception you can simply minify the prompt: for example you can display a notification icon in the address bar that the user can click in order to allow notifications (as discussed here: https://discourse.wicg.io/t/require-user-gesture-for-notification-permission-request/2366/6) 2. DO NOT RAISE AN EXCEPTION if you call window.safari.pushNotification.requestPermission() and the permission is already GRANTED. It doesn't make sense to break this call now (v12.1), since it doesn't even show a prompt to the user. Thank you for the report! Safari push notifications are a Safari feature, not a WebKit one, so we cannot track it here. Tracked internally by Apple in rdar://problem/49340787. See also: https://webkit.org/blog/8406/release-notes-for-safari-technology-preview-64/ If this is not the right place, could you suggest where I can post this issue?(In reply to Alexey Proskuryakov from comment #3) > Thank you for the report! Safari push notifications are a Safari feature, > not a WebKit one, so we cannot track it here. > > Tracked internally by Apple in rdar://problem/49340787. > > See also: > https://webkit.org/blog/8406/release-notes-for-safari-technology-preview-64/ If this is not the right place, could you suggest where I can post this issue? Your Apple report is in the right place, rdar://problem/49340787. |