解决方法:打开info.plist文件,添加background modes 解决方法:选择项目target 下的capabilities,打开Background models 选择remote notification