Skip to content

ignoreSilentHardwareSwitch on iOS: injected play() causes unhandled AbortError rejections #25

Open

Description

@kulek1

With ignoreSilentHardwareSwitch enabled on iOS, the page gets unhandled rejections: AbortError: The operation was aborted.

The scripts injected by forceIgnoreSilentHardwareSwitch call s.play() without handling the returned promise. WebKit rejects that promise when playback is interrupted, which happens on every background/foreground cycle because appWillResignActive sets src=null. I see this quite often on iOS 18.5–18.7 with 16.1.2.

The injected scripts also assume #wkwebviewAudio exists and throw a TypeError when it doesn't.

Repro:

  1. enable the prop
  2. attach Safari Web Inspector, then background and foreground the app a few times.

Separately, ignoreSilentHardwareSwitch isn't in the REMAP_WEBVIEW_PROP list in RNCWebView.mm, so on the New Architecture the prop never reaches native code and has no effect.

Activity

  1. added
    P1
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions