背景
我们的项目有一个功能点,apns控制空调温度变化,使用静默推送的方式完成。
在iOS 14以前都没问题,14就有一个现象:前4条秒接收,第5条开始接收不到。
获取apns本地日志
如何获取苹果apns日志?https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/APNS_Logging_Instructions.pdf
安装好证书后,根据指南获取本地日志
正常日志
手机系统接收到推送,构建消息体,转发APSConnectionServer对象

分发Application

寻找application,然后分发给FBSOpenApplicationService

FBSOpenApplicationService触发delegate didReceiveRemoteNotification回调方法


异常日志
手机系统接收到推送,构建消息体,转发APSConnectionServer对象

分发Application


可以看到在分发application过程中异常,流程没有继续往下走
解决方案
已反馈apple开发人员,并在14.2版本修复
网友评论