iOS10实现推送功能时的注意点和问题总结

上传:jidibingxuedong 浏览: 15 推荐: 0 文件:PDF 大小:62.3KB 上传时间:2021-02-01 17:22:47 版权申诉
1、在项目 target 中,打开Capabilitie —> Push Notifications,并会自动在项目中生成 .entitlement 文件。(很多同学升级后,获取不到 deviceToken,大概率是由于没开这个选项) Capabilitie —> Push Notifications 自动生成 .entitlement 2、确保添加了 UserNotifications.framework,并 import到 AppDelegate,记得实现 UNUserNotificationCenterDelegate 。 #import <UserNotifications
上传资源
用户评论