2016-07-14 125 views
1

尝试在iOS应用中启用推送通知。用于开发和分发的供应配置文件已创建。未请求推送通知权限

enter image description here

推送通知服务已在developer.apple.com

enter image description here

允许的,但应用不请求推送通知的权限和程序不注册推ID。进一步的XCode显示功能选项卡

enter image description here

是错误此消息是由于未正确设置或其他地方的配置文件?

+0

请出示你的'AppDelegate'相关的代码 – Asdrubal

回答

0

您是否已将此文件添加到您的AppDelegate文件中?

application.registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)) 

提供了这是迅速