sunny
sunny

Reputation: 59

How much data we can send through push notifications?

How much(size) amount of data we can pass through push notifications.

Thanks in advance.

Upvotes: 2

Views: 1600

Answers (2)

MH.
MH.

Reputation: 45503

The table of error codes for GCM provides an answer to your question. Specifically, have a look at error:MessageTooBig:

Message Too Big (HTTP code 200 + error:MessageTooBig)
Check that the total size of the payload data included in a message does not exceed GCM limits: 4096 bytes for most messages, or 2048 bytes in the case of messages to topics or notification messages on iOS. This includes both the keys and the values.

The limit appears somewhat flexible and doesn't include registration ids or any of the predefined parameters.

Upvotes: 1

fractalwrench
fractalwrench

Reputation: 4076

The payload limit is 4Kb for Android phones, or 2Kb for iOS. See the reference for more information.

Upvotes: 3

Related Questions