Il metodo onRegistered non viene mai chiamato, nel logcat vedo l'ultima riga come acquisizione di wakelock.GCM onRegistrato non chiamato
- 09-26 14: 03: 23,285: D/GCMRegistrar (15820): reset backoff per
- 09-26 14: 03: 23,285: V/GCMRegistrar (15820): Registrazione app * un di mittenti 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): Impostazione del nome della classe del destinatario tentativi su * .notifications.MyGCMBroadcastReceiver
- 09-26 14: 03: 23.895: V/GCMBroadcastReceiver (15820): GCM Classe IntentService: - * .notifications.GCMIntentService
- 09-26 14: 03: 23,903: V/GCMBaseIntentService (15820): Wakelock acquisizione
ho il mio Broadcastreceiver:
import com.google.android.gcm.GCMBroadcastReceiver;
public class MyGCMBroadcastReceiver extends GCMBroadcastReceiver {
@Override
protected String getGCMIntentServiceClassName (Context context) {
return GCMIntentService.class.getCanonicalName();
}
}