<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>264074</bug_id>
          
          <creation_ts>2023-11-01 19:34:34 -0700</creation_ts>
          <short_desc>Notifications and Web Push API no longer working in iOS 17.2 Beta</short_desc>
          <delta_ts>2023-11-07 09:47:06 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Service Workers</component>
          <version>Safari 17</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 17</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247315</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Cabrera">dannycabrera</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1989332</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Cabrera">dannycabrera</who>
    <bug_when>2023-11-01 19:34:34 -0700</bug_when>
    <thetext>Seems like notifications and push api is not available in iOS 17.2 Beta.

if (&apos;PushManager&apos; in window)
  console.log(&apos;Push available&apos;);
else 
  console.log(&apos;Push not available&apos;);

if (&apos;Notification&apos; in window)
  console.log(&apos;Notification available&apos;);
else 
  console.log(&apos;Notification not available&apos;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1989383</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Cabrera">dannycabrera</who>
    <bug_when>2023-11-02 05:02:59 -0700</bug_when>
    <thetext>Running simple script I attached returns not available for both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990398</commentid>
    <comment_count>2</comment_count>
      <attachid>468499</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-11-06 18:32:14 -0800</bug_when>
    <thetext>Created attachment 468499
test case

Same test as attachment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990401</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-11-06 18:53:34 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990535</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Cabrera">dannycabrera</who>
    <bug_when>2023-11-07 08:25:47 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1990563</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-11-07 09:47:06 -0800</bug_when>
    <thetext>Thank you. This behaves as expected, just needed to confirm that there wasn&apos;t any recent change.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>468499</attachid>
            <date>2023-11-06 18:32:14 -0800</date>
            <delta_ts>2023-11-06 18:32:14 -0800</delta_ts>
            <desc>test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>271</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KaWYgKCdQdXNoTWFuYWdlcicgaW4gd2luZG93KQogIGRvY3VtZW50LndyaXRlKCc8
cD5QdXNoIGF2YWlsYWJsZScpOwplbHNlIAogIGRvY3VtZW50LndyaXRlKCc8cD5QdXNoIG5vdCBh
dmFpbGFibGUnKTsKCmlmICgnTm90aWZpY2F0aW9uJyBpbiB3aW5kb3cpCiAgZG9jdW1lbnQud3Jp
dGUoJzxwPk5vdGlmaWNhdGlvbiBhdmFpbGFibGUnKTsKZWxzZSAKICBkb2N1bWVudC53cml0ZSgn
PHA+Tm90aWZpY2F0aW9uIG5vdCBhdmFpbGFibGUnKTsKPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>