推送通知未在iOS 10中接收 [英] Push notification not receiving in iOS 10

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

问题描述

我的应用程序在Appstore中。推送通知在iOS 9中运行良好,但在iOS 10中无法正常工作。我没有收到iOS 10设备的任何推送通知。我检查了服务器中的设备令牌和证书。全部正确。我还在设置应用中检查了通知属性。一切都很好。但我没有收到任何通知。我只是关闭并打开我的应用程序的通知。我打开我的应用程序来检查设备令牌是否正在改变。它已更改并更新到我的服务器。然后我正在接收通知。现在我的设备工作正常。

My App is in Appstore. Push notification is working fine in iOS 9, but in iOS 10 it is not working. I am not receiving any push notification for iOS 10 devices. I have checked the device token and certificate in my server. All are correct. I have also checked the notification properties in settings app. All are fine. But I didn't receive any notification. I just switch OFF and ON the notification for my app. And I opened my app to check whether device token is changing or not. It is changed and updated to my server. Then I am receiving notification properly. It is working fine now for my device.

我担心这是否会影响所有用户或仅影响我。任何人找到合适的解决方案请告诉我。

I am worried whether this will affect for all users or only me. Anyone find the proper solution please let me know.

提前致谢

推荐答案

需要对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.

我已使用新的UserNotification.framework解决了我的问题。
请点击此链接:推送通知问题使用iOS 10

I have resolved my issue using new UserNotification.framework. Please follow this link : Push notification issue with iOS 10

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

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