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

查看:29
本文介绍了在 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 进行一些更改您需要实现 UserNotifications.framework 及其委托方法才能获得推送通知的工作.

Need some changes for iOS 10 with xCode 8 GM You need to implement UserNotifications.framework and their delegate methods to get work of push notifications.

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

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

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

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