我发现Push Fixer应用正在使用
com.google.android.intent.action.MCS_HEARTBEAT
com.google.android.intent.action.GTALK_HEARTBEAT
但是Don不知道如何使用它们并在android中广播它们。
请帮助我是android的新手......
我想删除gcm中的延迟
还想知道如何设置心跳间隔
由于
答案 0 :(得分:0)
要触发心跳,必须发送这些广播:
context.sendBroadcast(new Intent("com.google.android.intent.action.GTALK_HEARTBEAT"));
context.sendBroadcast(new Intent("com.google.android.intent.action.MCS_HEARTBEAT"));