You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ignoreSilentHardwareSwitch on iOS: injected play() causes unhandled AbortError rejections #25
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:
enable the prop
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