Access microphone from within WKWebView not possible

Originator:andreas.woerner
Number:rdar://48813943 Date Originated:Mar 12, 2019
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 12.2
Classification: Reproducible:Always
 
Area:
WebKit

Summary:
It's not possible to request access to the microphone inside WKWebView the same way like it works inside Safari Browser.
In the Web APIs this is typically possible via: navigator.getUserMedia / navigator.mediaDevices.getUserMedia

Steps to Reproduce:
* Load "https://www.onlinemictest.com/" inside a WKWebView
* Click on button below "The Test:" to request access to microphone

Expected Results:
* Dialog which asks for access to microphone invisible in WKWebView (like in Safari Browser)

Actual Results:
* Nothing happens to grant access to the microphone

Version/Build:
N/A

Configuration:
See example: https://github.com/awBSH/apple-radar/tree/master/microphone-access-wkwebview

Comments

from Apple Developer Relations

Thank you for contacting us. It has not been determined how or when the issue will be resolved. The original report on this issue, Bug ID 29281220, is still under investigation. We will notify you when it is closed. Please note that you will not be able to directly view the original report in order to keep its information confidential. We will do our best to keep you informed as new information becomes available. Please check release notes regularly for changes affecting this issue. If you have further questions about this issue or wish to check on the status, please update your report again using the Apple Bug Reporter http://bugreport.apple.com.

By andreas.woerner at May 31, 2019, 4:52 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!