APN (Apple Push Notification) payload size limit

前端 未结 5 568
故里飘歌
故里飘歌 2020-12-02 12:43

In official documentation you can find the info:

Each push notification includes a payload. The payload contains information about how the system sh

5条回答
  •  -上瘾入骨i
    2020-12-02 13:06

    For iOS 9 there are some changes:

    Introduction of HTTP/2
    Payload increased to 4KB

    4 KB limit apply to all versions of iOS and OS 10

    Check this official link

    • 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)

    • If you are using the legacy APNs binary interface to send notifications instead of an HTTP/2 request, the maximum payload size is 2KB (2048 bytes)

    Check this video link for more details regarding the features of HTTP/2
    https://developer.apple.com/videos/play/wwdc2015-720/

提交回复
热议问题