首页 > 怎么突破javapns推送256个字节的限制?

怎么突破javapns推送256个字节的限制?

最近调用javapns的包,2.2版本的jar包,发现最多的推送字节数限制是256,超出了就是报错。

但是查看了apple的开发者文档,上面ios8的推送限制已经从256个字节改为2k了。

我现在要推送的内容明显的大于了256个字节,现在能怎么做才能突破256这个限制?

请大家帮我分析一下,有遇到同样问题的朋友吗?


Each remote notification includes a payload. The payload contains information about how the system should alert the user as well as any custom data you provide. The maximum size allowed for a notification payload is 2 kilobytes; Apple Push Notification service refuses any notification that exceeds this limit.

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

看这个官方文档,其中有新的协议描述。

【热门文章】
【热门文章】