OGeek|极客世界-中国程序员成长平台

标题: iOS VoiP 推送通知,XCode 背景模式未显示所需选项 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 13:53
标题: iOS VoiP 推送通知,XCode 背景模式未显示所需选项

我想启用 VoiP 推送通知。为此,我似乎必须在功能选项卡的背景模式部分中激活 VoiP 选项,如下所示。

enter image description here

但是,我的背景模式部分根本不提供此选项,如下面的屏幕截图所示。

enter image description here

我的推送通知不起作用,我已经正确实现了其他一切(我相信)。我很困惑,我的背景模式部分看起来与我在教程/文献中可以找到的任何东西都不一样,有人知道吗?我运行 Xcode 9.0。



Best Answer-推荐答案


如果您使用的是 Xcode 9,那么您可以手动添加它。

<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

关于iOS VoiP 推送通知,XCode 背景模式未显示所需选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46824556/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4