Felipe Pereira
Felipe Pereira

Reputation: 12300

Android push notifications limit (C2DM)

As stated here there is a limit, the error code exists:

QuotaExceeded — Too many messages sent by the sender. Retry after a while.

My question; does anyone knows the real meaning (values) of "Too many messages" and "Retry after a while"?

Somewhere it says 200k per day, but I can get this error if I send 30 messages really quick (30 in 2 o 3 seconds to the same device).

Note: C2DM is deprecated, I know.

Thanks.

Upvotes: 1

Views: 947

Answers (1)

blackcj
blackcj

Reputation: 3661

Your messages are most likely being throttled. Use the collapse key to group messages and send them out in batches. This is GCM documentation but should be relevant to what you are doing.

http://developer.android.com/google/gcm/adv.html#throttling

Upvotes: 1

Related Questions