Xcode 8 Beta iOS 10推送通知停止工作 [英] xcode 8 beta ios 10 push notifications stopped working

查看:114
本文介绍了Xcode 8 Beta iOS 10推送通知停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

切换到xcode 8 beta后,我的推送通知已停止工作。

After switching to xcode 8 beta my push notifications have stopped working.

我要发布的代码签名身份已设置为分发。我正在注册设备,接收令牌并将其成功上传到我的服务器,没有任何问题。但是推送消息的状态失败。

My code signing identity for release is set to distribution. I am registering the device, receiving the token and successfully uploading it to my server without any problem. But the status of the push messages is failed.

只是想知道我是否需要进行任何更改,或者它是否不适用于xcode的Beta版。

Just wondering if i need to make any changes or if it will not work with a beta version of xcode.

推荐答案

在目标中的功能和推送通知下,我需要将推送通知权利添加到我的权利文件中。只需单击出现错误消息的按钮即可。

In the targets, under Capabilities and Push Notifications I needed to add the push notification entitlement to my entitlements file. This was done just by clicking the button that appeared here with the error message.

这篇关于Xcode 8 Beta iOS 10推送通知停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆