Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Voip(Voice over IP) missing in Xcode 9

Tags:

ios

voip

pushkit

i am using pushKit in my App but didUpdatePushCredentials delegate never called. xcode 9 not having Voice over IP

Capabilities --> Background Modes --> Voice over IP

enter image description here

i am following this link..implement pushkit

certificates generated again but not working.

like image 958
Varinder Singh iPhone Dev Avatar asked Jul 11 '17 04:07

Varinder Singh iPhone Dev


3 Answers

Although, Xcode 9 is announced officially, still there isn't VoIP on the capabilities.

I solved my problem by opening Info.plist as a source code and adding "voip" to UIBackgroundModes manually.

<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
    <string>voip</string>
    <string>fetch</string>
    <string>remote-notification</string>
</array>
like image 165
Seref Bulbul Avatar answered Sep 18 '22 23:09

Seref Bulbul


according to Apple forum discussion this is the answer

"In iOS 10, you should be using PushKit for handling push notifications for incoming VoIP calls. So when you build your app against the iOS 10 SDK, you need to move over to PushKit (which can be supported all the way back to iOS 8, but once you move to iOS 10 our recommendation is to update your minimum deployment target to iOS 9). "

original link of the answer: https://forums.developer.apple.com/thread/50106

like image 40
Amitabha Avatar answered Sep 20 '22 23:09

Amitabha


I experimented with the settings and I only need to enable VOIP as a background mode.

Open Info.plist as source and add make sure it contains the following:

<key>UIBackgroundModes</key>
<array>
     <string>voip</string>
</array>

I also needed to enable Push Notifications like this: enter image description here

like image 21
Sam Avatar answered Sep 22 '22 23:09

Sam