I am running a VUE JS based VoIP application on the WkWebView .
-
When the application is in the foreground it captures audio from microphone and plays the audio to the speaker.
-
When the app goes to background, it stops the audio capture from microphone. i) using the iOS15 method on WkWebView, microphoneCaptureState indicates that it is not active. ii) setMicrophoneCaptureState is called with .active but if I check the capture state in the completion handler, it still remains in the not active state.
-
When the app goes to foreground it resumes the audio capture w/o any issue.
Application has these background modes set: "Voice over IP", "Background processing", "Audio, Airplay, and PIP", "Remote notifications" and "Uses Bluetooth LE accessories"
If the same VUE JS application is accessed from Safari browser, the audio capture works fine even in the background.