Bug 264074 - Notifications and Web Push API no longer working in iOS 17.2 Beta
Summary: Notifications and Web Push API no longer working in iOS 17.2 Beta
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-01 19:34 PDT by Daniel Cabrera
Modified: 2023-11-07 09:47 PST (History)
2 users (show)

See Also:


Attachments
test case (271 bytes, text/html)
2023-11-06 18:32 PST, Alexey Proskuryakov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.