解决办法:
第一种:Product -> Target -> Capabilities -> Background Modes -> 勾选Remote notification
第二种:info.plist文件配置:Required background modes->App downloads content in response to push notifications
本文介绍了两种设置iOS应用后台模式的方法:一是通过Xcode的Target配置界面勾选远程通知;二是修改info.plist文件,添加所需的后台模式配置项,确保应用能在接收到推送通知时下载内容。
解决办法:
第一种:Product -> Target -> Capabilities -> Background Modes -> 勾选Remote notification
第二种:info.plist文件配置:Required background modes->App downloads content in response to push notifications
1556
2658

被折叠的 条评论
为什么被折叠?