I am developing a WKWebView app that runs on both iOS and Mac Catalyst using a react website.
Currently, an admin user can send a call request in which the user gets a pop-up to answer. on iOS it works as intended, the user is asked to grant permission to utilize camera and microphone and the user is immediately connected upon accepting, however I never receive the pop-up when running in Mac Catalyst. I have ensured to enable permissions in sandbox settings as well as adding NSCamera and NSMic permissions in the property list
<key>NSCameraUsageDescription</key> <string>This application requires camera access to access live video chat</string> <key>NSMicrophoneUsageDescription</key> <string>This application requires microphone access to record audio.</string>
in the safari debugging console I receive this error upon clicking the accept call from the video chat, I do not receive this error when accepting the call on mobile
ReferenceError: Can't find variable: RTCPeerConnection
Ive attempted to use the webview callback requestMediaCapturePermissionFor, and this did not seem to trigger on attempting to answer the call. Is this an error on my development end? or is this an issue I should look to the react code for a fix. I appreciate any feedback possible. Thanks.