Google云消息传递服务丢失了一些消息

时间:2015-09-08 13:13:31

标签: android google-cloud-messaging

GCM丢失了一些消息。例如,当设备A发送20条消息而设备B处于离线状态时,gcm包含所有消息,但当设备b上线时,它会接收来自20条已发送消息的随机消息。

这是我的build.gradle依赖

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.gms:play-services-gcm:7.5.+'
    compile 'com.android.support:appcompat-v7:22.1.1'
    compile 'org.lucasr.twowayview:twowayview:0.1.4'
    compile 'com.mcxiaoke.volley:library:1.0.+'
    // Testing dependencies
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.1'
    androidTestCompile 'com.android.support.test:runner:0.2'
    androidTestCompile 'com.android.support:support-annotations:22.1.1'
    compile files('libs/universal-image-loader-1.9.2.jar')
}

如何从gcm获取所有消息。

谢谢

0 个答案:

没有答案
相关问题