如何设置有效时间段为Android C2DM消息? [英] how to set valid time period for android c2dm message?

查看:127
本文介绍了如何设置有效时间段为Android C2DM消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个功能,只将邮件传递到特定阶段的设备。经过有效时间,消息将被抛弃。任何人都可以建议我如何做到这一点?

I would like to implement a feature that only delivers messages to devices at specific periods. After the valid time, messages would be abandoned. Can anyone suggest me how to do this?

推荐答案

谷歌刚刚发布C2DM的新版本名为的谷歌云消息(GCM)在I / O 2012年随着GCM它可以定义一个超时的消息。

Google just released a new version of c2dm called "Google Cloud Messaging (GCM)" at I/O 2012. With GCM its possible to define a timeout for your messages.

GCM TTL部分: http://developer.android.com/导/谷歌/ GCM / adv.html#TTL

GCM ttl section: http://developer.android.com/guide/google/gcm/adv.html#ttl

您可以找到我的答案在这里一个类似的问题: http://stackoverflow.com/a/9709944/789738

You can find my answer to a similiar question here: http://stackoverflow.com/a/9709944/789738

这篇关于如何设置有效时间段为Android C2DM消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆