Bug 239602

Summary: Non Safari browsers kill audio when going to background
Product: WebKit Reporter: Dan Jenkins <dan>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bryan.david.elliot, cdumez, chrisguttandin, dan, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   

Description Dan Jenkins 2022-04-21 06:50:40 PDT
Presumably this relates to https://bugs.webkit.org/show_bug.cgi?id=217948

Its a really bad experience when Safari allows this but other non safari browsers using webkit can't

Aim: For browsers to act the same on ios - if you background safari on ios, it kills video but lets audio continue - non safari browsers like chrome and firefox can't support that - they kill audio and video.

Chrome's info.plist can be found at https://chromium.googlesource.com/chromium/src.git/+/refs/tags/100.0.4896.85/ios/chrome/app/resources/Info.plist#100
Comment 1 Radar WebKit Bug Importer 2022-04-24 13:31:44 PDT
<rdar://problem/92238462>
Comment 2 chrisguttandin 2023-09-21 12:57:28 PDT
It looks like https://github.com/WebKit/WebKit/commit/b3e3f3725328eb8317a0c01cdd865f582729b15a#diff-eb53128982f06de1812918219a404f7c15e38696bcc608e7e362691b04211ff5 lifted the restriction for other browsers on iOS. However installed web apps still suffer from this problem.
Comment 3 BryanE 2023-12-26 09:09:06 PST
Has anyone found a workaround for this? Installed web apps still lose the microphone as soon as they go into background (or screen locked).  But when loaded in Safari, Safari continues to be able to access the microphone even if backgrounded or screen locked.