<?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>295518</bug_id>
          
          <creation_ts>2025-07-07 08:00:55 -0700</creation_ts>
          <short_desc>REGRESSION (iOS 26): Audio Element Fails to Play on Reopen in PWA (Add to Home Screen)</short_desc>
          <delta_ts>2025-12-26 11:17:45 -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>Media</component>
          <version>Safari 26</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 26</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=291892</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=300990</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Goni">marianog</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>alex</cc>
    
    <cc>ap</cc>
    
    <cc>cmorison</cc>
    
    <cc>jb.thery</cc>
    
    <cc>jer.noble</cc>
    
    <cc>mattwindwer</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2128145</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Goni">marianog</who>
    <bug_when>2025-07-07 08:00:55 -0700</bug_when>
    <thetext>Issue:

On iOS 26, when using a PWA added to the home screen:

Open the PWA.

Play an audio file using an &lt;audio&gt; element.

Close the app (swipe away or press Home).

Reopen the PWA and attempt to play the audio again.

Result:
The audio does not play. No error is thrown, audio.play() resolves, but no sound is produced. The &lt;audio&gt; element appears stuck or unreleased by the system.

Expected Behavior:
Audio should play normally each time the app is opened.

Additional Info:

Works correctly in Safari (not in standalone mode).

Issue is consistent across audio sources.

Reproducible on iOS 26 only after &quot;Add to Home Screen&quot;.

Test Case:
Try with a known source like soundcloud.com

Steps to Reproduce the Audio Bug on iOS 26 PWA:

Open Safari on iOS 26.

Navigate to: https://soundcloud.com

Tap the Share icon and choose “Add to Home Screen.”

Open the newly added PWA from the home screen.

Tap any playable song — (✅ working).

Close the app (swipe it away or press the Home button).

Reopen the app from the home screen.

Tap the play song button again.

Observed Result:
Nothing happens. The button disables, the status changes, but no audio is played. The audio.play() call resolves silently, with no errors, and no sound.

Expected Result:
The song should play again on each launch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128296</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-07-07 15:45:09 -0700</bug_when>
    <thetext>Thank you for the report! Could you please clarify whether this issue is new in iOS 26, or also affects iOS 18.x, or if that&apos;s not known?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128416</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Goni">marianog</who>
    <bug_when>2025-07-08 04:32:38 -0700</bug_when>
    <thetext>This bug only affects iOS 26 (beta 1 and 2) . Since official release will be in September, we rush to have a solution for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128432</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Suzuki">alex</who>
    <bug_when>2025-07-08 06:09:48 -0700</bug_when>
    <thetext>For the linked Web Audio bug (https://bugs.webkit.org/show_bug.cgi?id=291892) I created a PWA to reproduce: https://suzukieng.github.io/wa-pwa/

The button &apos;HTML5 Fallback Beep&apos; plays a beep sound via an &lt;audio&gt; element, see source link:
https://github.com/suzukieng/wa-pwa/blob/554d924a6c64aeb4f6e22ff44c7b9ab066bc21cf/src/main.ts#L114

I can not reproduce the behavior you mention?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128460</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-07-08 09:20:03 -0700</bug_when>
    <thetext>I cannot test this right now, as adding to home screen is broken in Seed 3. Let&apos;s treat this as a regression for soundcloud.com until proven otherwise, even though this appears similar to preexisting issue in bug 291892.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128461</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-07-08 09:20:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/155336513&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128495</commentid>
    <comment_count>6</comment_count>
    <who name="Mariano Goni">marianog</who>
    <bug_when>2025-07-08 11:17:49 -0700</bug_when>
    <thetext>You don&apos;t need complicated webkit audio code to test this. Even with two demo mp3 fails. When you can add to home screen in iOS 26 : 00z.es/gen/playt.html  let me know if you can reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128626</commentid>
    <comment_count>7</comment_count>
    <who name="Alex Suzuki">alex</who>
    <bug_when>2025-07-08 23:44:17 -0700</bug_when>
    <thetext>@Mariano: I can confirm that I can reproduce the issue with 00z.es/gen/playt.html. Yes the issue I reported was for WebAudio, but it&apos;s probably related, and my reproducer has a &lt;audio&gt; element option for comparison. I&apos;m currently using an &lt;audio&gt; element as fallback for the WebAudio issue in PWAs on iOS because. I sincerely hope that &lt;audio&gt; stays operational on PWA...

One difference I can see is that in my (still working) reproducer, I set the .src on the audio element immediately before requesting playback (and also set it again when attempting to play again).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2128699</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Goni">marianog</who>
    <bug_when>2025-07-09 08:25:11 -0700</bug_when>
    <thetext>You could have warned us that installing iOS 26 Beta 3 makes the add to home screen not working at all. 

Now I erased some app to reinstall it, and I can&apos;t reinstall at all. The presentation of the new app I have to do is ruined by Apple. 

I hope assistants believe me. 

This situation only keeps getting worse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2151772</commentid>
    <comment_count>9</comment_count>
    <who name="Mariano Goni">marianog</who>
    <bug_when>2025-10-16 12:48:39 -0700</bug_when>
    <thetext>Bug continues in production release iOS 26 and in iOS 26.1 beta 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2151806</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-10-16 14:01:51 -0700</bug_when>
    <thetext>Thank you for the update! We&apos;ll take another look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2168268</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2025-12-26 11:13:27 -0800</bug_when>
    <thetext>*** Bug 300990 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>