Reputation: 561
I would like to enable VoiP Push notifications. To do this, it seems I have to activate the VoiP option in the background modes section of the capabilities tab, as shown below.
However, my background modes section doesn't offer this option at all, as can be seen in the screenshot below.
My push notifications are not working and I have implemented everything else correctly (I believe). I am just very confused that my background modes section looks different from anything I can find in tutorials/literature, does anyone have an idea? I run Xcode 9.0.
Upvotes: 2
Views: 2816
Reputation: 9898
If you are using Xcode 9 then You can add it manually.
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>voip</string>
<string>fetch</string>
<string>remote-notification</string>
</array>
For more details, integrating VOIP with Swift or Objective C code you can refer
Upvotes: 3