GCM: how to avoid throttling

后端 未结 1 2036
野的像风
野的像风 2020-12-11 19:59

My android system needs to send frequent updates to an app for tablet (a kiosk always connected to wifi and power plug).
GCM-HTTP (//developer.android.com/google/gcm/htt

相关标签:
1条回答
  • 2020-12-11 20:51

    Maybe setting time_to_live to 0.

    From http://developer.android.com/google/gcm/adv.html:

    "Another advantage of specifying the expiration date for a message is that GCM will never throttle messages with a time_to_live value of 0 seconds. In other words, GCM will guarantee best effort for messages that must be delivered "now or never." Keep in mind that a time_to_live value of 0 means messages that can't be delivered immediately will be discarded. However, because such messages are never stored, this provides the best latency for sending notifications."

    0 讨论(0)
提交回复
热议问题