Bug 264074

Summary: Notifications and Web Push API no longer working in iOS 17.2 Beta
Product: WebKit Reporter: Daniel Cabrera <dannycabrera>
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, beidson
Priority: P2    
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
See Also: https://bugs.webkit.org/show_bug.cgi?id=247315
Attachments:
Description Flags
test case none

Daniel Cabrera
Reported 2023-11-01 19:34:34 PDT
Seems like notifications and push api is not available in iOS 17.2 Beta. if ('PushManager' in window) console.log('Push available'); else console.log('Push not available'); if ('Notification' in window) console.log('Notification available'); else console.log('Notification not available');
Attachments
test case (271 bytes, text/html)
2023-11-06 18:32 PST, Alexey Proskuryakov
no flags
Daniel Cabrera
Comment 1 2023-11-02 05:02:59 PDT
Running simple script I attached returns not available for both.
Alexey Proskuryakov
Comment 2 2023-11-06 18:32:14 PST
Created attachment 468499 [details] test case Same test as attachment.
Alexey Proskuryakov
Comment 3 2023-11-06 18:53:34 PST
Thank you for the report. What were the prior iOS versions where these worked for you? As far as I can tell, neither is expected to be enabled in iOS Safari.
Daniel Cabrera
Comment 4 2023-11-07 08:25:47 PST
Some more details. Seems these calls work just fine when app is added to the homescreen and launched as a PWA. If running Safari and visiting the URL (not launched as a PWA) directly, they return false.
Alexey Proskuryakov
Comment 5 2023-11-07 09:47:06 PST
Thank you. This behaves as expected, just needed to confirm that there wasn't any recent change.
Note You need to log in before you can comment on or make changes to this bug.