本文介绍了推送通知在iOS 10上无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装iOS 10的新更新后,推送通知无法正常工作,而相同的代码实现适用于iOS 9. iOS 10的推送通知是否有任何新功能。因为,我无法弄明白。此外,是否有必要在功能下打开推送通知。

After the installing the new update of iOS 10, push notifications are not working, while the same implementation of code is working for iOS 9. Is there any new thing for iOS 10 for push notification. As, I am not able figure it out. Also, is it necessary to turn on push notification under capabilities.

推荐答案

需要对iOS 10与xCode 8 GM进行一些更改您需要实现UserNotification.framework及其委托方法以获取推送通知和功能需要启用推送通知。

Need some changes for iOS 10 with xCode 8 GM You need to implement UserNotification.framework and their delegate methods to get work of push notifications and in capabilities needs to enable Push Notifications.

您必须导入新的UserNotification.framework。请点击此链接:

You have to import new UserNotification.framework. Please follow this link : Push notification issue with iOS 10

这篇关于推送通知在iOS 10上无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 05:11