I have noticed that Android push notifications are often delayed and received in 'batches' (since recently), which is a critical issue as it disrupts the UI & user interaction.
This is most likely caused by the new (optional) priority field in GCM messages. The API has changed a lot in the last few months.
We should send all notifications with "priority" : "high", instead of the default value "normal" which is not suitable for realtime communication apps.
Not sure if the current push library supports this :(
For example, in this request, "normal" should be set to "high":
I have noticed that Android push notifications are often delayed and received in 'batches' (since recently), which is a critical issue as it disrupts the UI & user interaction.
This is most likely caused by the new (optional) priority field in GCM messages. The API has changed a lot in the last few months. We should send all notifications with
"priority" : "high"
, instead of the default value"normal"
which is not suitable for realtime communication apps.Not sure if the current push library supports this :(
For example, in this request,
"normal"
should be set to"high"
:GCM docs: https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json