2012-12-06 4 views
0

J'ai donc implémenté GCM dans mon application avec l'aide du tutoriel AndroidHive. Les messages push fonctionnaient sur mes deux appareils Samsung Galaxy S3 et Nexus 7. Mais maintenant, les notifications push ne fonctionnent que sur ma Samsung Galaxy S3 et donnent une erreur à mon Nexus 7. Mon nexus 7 ne veut pas pour vous inscrire plus. lorsque je tente d'enregistrer mon Nexus 7 je reçois ceci:GCM ne fonctionne pas sur Nexus 7 il est sur Samsung Galaxy S3

01-01 07:46:33.396: V/GCMBroadcastReceiver(10980): onReceive: com.google.android.c2dm.intent.REGISTRATION 
01-01 07:46:33.396: V/GCMBroadcastReceiver(10980): GCM IntentService class: com.toviehd.remake.GCMIntentService 
01-01 07:46:33.396: V/GCMBaseIntentService(10980): Acquiring wakelock 
01-01 07:46:33.426: V/GCMBaseIntentService(10980): Intent service name: GCMIntentService-725930664821-1 
01-01 07:46:33.426: E/GCMRegistrar(10980): internal error: retry receiver class not set yet 
01-01 07:46:33.426: V/GCMRegistrar(10980): Registering receiver 
01-01 07:46:33.436: D/GCMBaseIntentService(10980): handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null 
01-01 07:46:33.436: D/GCMBaseIntentService(10980): Registration error: SERVICE_NOT_AVAILABLE 
01-01 07:46:33.436: I/GCMIntentService(10980): Received recoverable error: SERVICE_NOT_AVAILABLE 
01-01 07:46:33.446: D/GCMBaseIntentService(10980): Scheduling registration retry, backoff = 1573 (3000) 
01-01 07:46:33.466: V/GCMBaseIntentService(10980): Releasing wakelock 
01-01 07:46:34.796: D/dalvikvm(10980): GC_CONCURRENT freed 212K, 5% free 8010K/8376K, paused 1ms+3ms, total 20ms 
01-01 07:46:34.976: D/dalvikvm(10980): GC_CONCURRENT freed 273K, 6% free 8159K/8592K, paused 3ms+3ms, total 24ms 
01-01 07:46:35.026: V/GCMBroadcastReceiver(10980): onReceive: com.google.android.gcm.intent.RETRY 
01-01 07:46:35.026: V/GCMBroadcastReceiver(10980): GCM IntentService class: com.toviehd.remake.GCMIntentService 
01-01 07:46:35.026: V/GCMBaseIntentService(10980): Acquiring wakelock 
01-01 07:46:35.036: V/GCMBaseIntentService(10980): Intent service name: GCMIntentService-725930664821-2 
01-01 07:46:35.036: V/GCMRegistrar(10980): Registering app com.toviehd.remake of senders 725930664821 
01-01 07:46:35.046: V/GCMBaseIntentService(10980): Releasing wakelock 
01-01 07:46:35.146: V/GCMBroadcastReceiver(10980): onReceive: com.google.android.c2dm.intent.REGISTRATION 
01-01 07:46:35.146: V/GCMBroadcastReceiver(10980): GCM IntentService class: com.toviehd.remake.GCMIntentService 
01-01 07:46:35.146: V/GCMBaseIntentService(10980): Acquiring wakelock 
01-01 07:46:35.176: V/GCMBaseIntentService(10980): Intent service name: GCMIntentService-725930664821-3 
01-01 07:46:35.176: D/GCMBaseIntentService(10980): handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null 
01-01 07:46:35.176: D/GCMBaseIntentService(10980): Registration error: SERVICE_NOT_AVAILABLE 
01-01 07:46:35.176: I/GCMIntentService(10980): Received recoverable error: SERVICE_NOT_AVAILABLE 
01-01 07:46:35.186: D/GCMBaseIntentService(10980): Scheduling registration retry, backoff = 5157 (6000) 
01-01 07:46:35.196: V/GCMBaseIntentService(10980): Releasing wakelock 
01-01 07:46:35.996: D/dalvikvm(10980): GC_CONCURRENT freed 359K, 6% free 8220K/8736K, paused 3ms+4ms, total 22ms 
01-01 07:46:36.116: D/dalvikvm(10980): GC_CONCURRENT freed 332K, 7% free 8332K/8868K, paused 3ms+3ms, total 24ms 
01-01 07:46:40.346: V/GCMBroadcastReceiver(10980): onReceive: com.google.android.gcm.intent.RETRY 
01-01 07:46:40.346: V/GCMBroadcastReceiver(10980): GCM IntentService class: com.toviehd.remake.GCMIntentService 
01-01 07:46:40.346: V/GCMBaseIntentService(10980): Acquiring wakelock 
01-01 07:46:40.356: V/GCMBaseIntentService(10980): Intent service name: GCMIntentService-725930664821-4 
01-01 07:46:40.356: V/GCMRegistrar(10980): Registering app com.toviehd.remake of senders 725930664821 
01-01 07:46:40.366: V/GCMBaseIntentService(10980): Releasing wakelock 
01-01 07:46:40.466: V/GCMBroadcastReceiver(10980): onReceive: com.google.android.c2dm.intent.REGISTRATION 
01-01 07:46:40.466: V/GCMBroadcastReceiver(10980): GCM IntentService class: com.toviehd.remake.GCMIntentService 
01-01 07:46:40.466: V/GCMBaseIntentService(10980): Acquiring wakelock 
01-01 07:46:40.476: V/GCMBaseIntentService(10980): Intent service name: GCMIntentService-725930664821-5 
01-01 07:46:40.486: D/GCMBaseIntentService(10980): handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null 
01-01 07:46:40.486: D/GCMBaseIntentService(10980): Registration error: SERVICE_NOT_AVAILABLE 
01-01 07:46:40.486: I/GCMIntentService(10980): Received recoverable error: SERVICE_NOT_AVAILABLE 
01-01 07:46:40.486: D/GCMBaseIntentService(10980): Scheduling registration retry, backoff = 8885 (12000) 
01-01 07:46:40.496: V/GCMBaseIntentService(10980): Releasing wakelock 

Je ne sais vraiment pas ce que je fait pour briser cette ... Toute aide serait grandement appréciée

Répondre

4

Il fallait un temps Date réglage. La date sur la tablette était dans le passé. Je pense que GCM ne peut pas synchroniser dans le passé ou quelque chose. Je réinitialise le temps sur la tablette et ça marche encore !!

+0

J'ai gaspillé mes 10 heures précieuses à comprendre ce qui s'est passé. Merci beaucoup Toby. – drulabs

+1

Glad je pourrais aider :) – sn0ep

Questions connexes