APN (Apple Push Notification) payload size limit

前端 未结 5 596
故里飘歌
故里飘歌 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条回答
  •  情书的邮戳
    2020-12-02 12:52

    Per the most recent official documentation, the payload limit is 4096 bytes or 2048 bytes for regular notifications, and 5120 bytes for VoIP notifications:

    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)

    Note: 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).

    Prior to iOS 8, the limit was 256 bytes.

提交回复
热议问题