user7356913
user7356913

Reputation: 15

What is the size of notification payload in ios 11?

Can any one tell me the size of payload in ios 11. For ios 8 i know it is 2KB But for ios 11 i dont know is it changed or it remains same as for ios 8? please tell me. thanks

Upvotes: 0

Views: 2663

Answers (2)

MayankSengar
MayankSengar

Reputation: 284

Yes the maximum size of payload is 4KB.

When using the HTTP/2 based APNS provider API, the maximum size for your JSON dictionary is 4KB. For legacy APIs, the payload size is smaller.

For more check this link

Upvotes: 0

msanford
msanford

Reputation: 12237

From Apple Developer:

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)

Upvotes: 3

Related Questions