gpt4 book ai didi

ios - 远程推送通知是否需要在 Info.plist 中添加 UIBackgroundModes?

转载 作者:IT王子 更新时间:2023-10-29 07:31:11 30 4
gpt4 key购买 nike

我已经集成了远程推送通知,但我收到了这个警告:

didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.

我的 Xcode 版本是 8.3.1。我真的很想将它添加到 Info.plist。我也遵循了一些教程,但他们也没有提到这一点。我到底应该怎么做?

最佳答案

是的,您应该启用后台模式/远程通知才能使用远程通知进行后台更新。

最简单的方法是通过项目设置。导航到 Targets -> Your App -> Capabilities -> Background Modes 并检查 Remote notifications。这将自动启用所需的设置。

Background Modes dropdown list in Project Settings

关于ios - 远程推送通知是否需要在 Info.plist 中添加 UIBackgroundModes?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45440627/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com