How to set a timeout/expiration on a C2DM message?

后端 未结 1 1197

Is there a TTL or expiration or some sort of timeout feature for C2DM messages?

I would like the C2DM message to be received within 10 minutes by the device, any longer

相关标签:
1条回答
  • 2021-01-29 00:24

    C2DM does not have such a feature. Please have a look here:

    how to set valid time period for android c2dm message?

    Update:

    Google just released a new version of c2dm called "Google Cloud Messaging (GCM)". With GCM it is possible to use a timeout for your messages:

    enter image description here

    I really recommend the Google I/O 2012 "Google Cloud Messaging for Android" session available here: http://www.youtube.com/watch?v=YoaP6hcDctM

    Additionally you can read through the GCM ttl section: http://developer.android.com/guide/google/gcm/adv.html#ttl

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