极光推送的ios-apns推送是否已对接最新的版本?

shun
2018-08-29 02:34 1k 0

我们在查阅推送文档
https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#notification 的文档中描述了如下内容:
iOS 通知 JPush 要转发给 APNs 服务器。APNs 协议定义通知长度为 2048 字节。
JPush 因为需要重新组包,并且考虑一点安全冗余,要求"iOS":{ } 及大括号内的总体长度不超过:2000 个字节。JPush 使用 utf-8 编码,所以一个汉字占用 3 个字节长度。

同时我们也查阅了apple-dev文档
https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html
有如下描述:
You construct this payload as a JSON dictionary and send
it as the body content of your HTTP/2 message. The maximum size of the
payload depends on the notification you are sending:
For regular remote notifications, the maximum size is 4KB (4096 bytes)
For Voice over Internet Protocol (VoIP) notifications, the maximum size is 5KB (5120 bytes)

经查阅发现苹果在16年的时候就已经升级了apns服务、加入了http2的支持/同时消息长度也提升为4k;

目前有以下问题烦请解答:
1、不知道目前极光的技术实现上到底是用的socket旧的apns推送通道还是http2的推送通道、消息是否已经支持4k的长度?是否只是文档没有更新、技术实现上已跟进为苹果的最新方案;

2个回答

热门排序