WebRTC Audio Session iOS in Background Mode

Viewed 1913

I am using WebRTC in iOS for Making Video Call.In earlier Xcode/iOS Versions, Audio & Voice over IP in Background Mode. It was working fine in background mode.

Now, I saw Voice over IP is missing in Xcode 9 & Call is disconnecting in the background.

It gives option

"Message from debugger: Terminated due to signal 9"

after certain seconds (50 seconds).

Any guideline?

1 Answers

You can add support doing manually

<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
    <string>voip</string>
    <string>fetch</string>
    <string>remote-notification</string>
</array>

Well some notes are as below.

  • WebRTC - Newer works when app is in background or terminated mode
  • You can debug your code while app is in terminated mode, so you can exactly figure our the reason of crash

You can refer related material here

https://github.com/hasyapanchasara/PushKit_SilentPushNotification

Related