Bug 241480 - [iOS] WKWebView WebRTC session loses microphone input when the app goes into the background
Summary: [iOS] WKWebView WebRTC session loses microphone input when the app goes into ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 15
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-09 12:25 PDT by Evgeny
Modified: 2022-06-16 12:26 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny 2022-06-09 12:25:58 PDT
iOS WKWebView WebRTC session loses microphone input when the app goes into the background, irrespective of the app entitlements.

The sound from the other connection peer remains active.

Interestingly, while the app is moved to recent apps view (I believe, the app is in the inactive phase), the microphone input is still active, it only disappears when the app goes into the the background phase.

When the app is returned to foreground (active phase), the microphone input resumes again.

This issue can be experimented with in our app: https://apps.apple.com/us/app/simplex-chat/id1605771084

The source code for the page in WKWebView: https://github.com/simplex-chat/simplex-chat/blob/stable/packages/simplex-chat-webrtc/src/call.ts

The source code for iOS: https://github.com/simplex-chat/simplex-chat/blob/stable/apps/ios/Shared/Views/Call/WebRTCView.swift
Comment 1 Radar WebKit Bug Importer 2022-06-16 12:26:12 PDT
<rdar://problem/95321578>