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

Description Daniel Cabrera 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');
Comment 1 Daniel Cabrera 2023-11-02 05:02:59 PDT
Running simple script I attached returns not available for both.
Comment 2 Alexey Proskuryakov 2023-11-06 18:32:14 PST
Created attachment 468499 [details]
test case

Same test as attachment.
Comment 3 Alexey Proskuryakov 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.
Comment 4 Daniel Cabrera 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.
Comment 5 Alexey Proskuryakov 2023-11-07 09:47:06 PST
Thank you. This behaves as expected, just needed to confirm that there wasn't any recent change.