我知道C2DM注册过期了,您应该定期刷新注册ID。 GCM的情况是这样吗?通过查看Android GCM指南(如下所示)上的以下代码,您似乎只做了一次,不需要刷新,但是我没有看到明确写在任何地方,所以我只想检查。GCM注册ID是否过期?
final String regId = GCMRegistrar.getRegistrationId(this);
if (regId.equals("")) {
GCMRegistrar.register(this, SENDER_ID);
} else {
Log.v(TAG, "Already registered");
}
类似:http://stackoverflow.com/questions/16838654/handling-registration-id-changes-in-google-cloud-messaging-on-android – trante 2014-05-22 10:29:35