Roxot / polly

Event planning made easy.
www.getpollyapp.com
0 stars 0 forks source link

Make sure GCM push messages have high priority #27

Closed sander-m closed 8 years ago

sander-m commented 8 years ago

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 :(

screen shot 2016-03-14 at 00 47 31 screen shot 2016-03-14 at 00 48 06

For example, in this request, "normal" should be set to "high":

screen shot 2016-03-14 at 00 48 29

GCM docs: https://developers.google.com/cloud-messaging/http-server-ref#downstream-http-messages-json

Roxot commented 8 years ago

Hopefully fixed in #31