onRegisteredメソッドは呼び出されません。logcatでは、最後の行がwakelockを取得しています。GCM onRegisteredが呼び出されていない
- 9月26日14:03:23.285:D/GCMRegistrar(15820):03:
- 09から26 14のためにリセットバックオフ23.285:V/GCMRegistrar(15820):登録アプリ* A送信者の735175912799
- 09-26 14:03:23.895:V/GCMBroadcastReceiver(15820):onReceive: - com.google.android.c2dm.intent.REGISTRATION 09-26 14:03:23.895: V/GCMRegistrar 15820):再試行受信機クラスの名前を * .notifications.MyGCMBroadcastReceiverに設定する
- 09-26 14:03:23.895:V/GCMBroadcastReceiver(15820):GCM IntentServiceクラス: - * .notifications.GCMIntentService
- 9月26日14:03:23.903:V/GCMBaseIntentService(15820):取得wakelock
私は自分Broadcastreceiverを持っている:
import com.google.android.gcm.GCMBroadcastReceiver;
public class MyGCMBroadcastReceiver extends GCMBroadcastReceiver {
@Override
protected String getGCMIntentServiceClassName (Context context) {
return GCMIntentService.class.getCanonicalName();
}
}