簡體   English   中英

GCM在Nexus 7上不起作用,在Samsung Galaxy S3上不起作用

[英]GCM is not working on Nexus 7 it is on Samsung Galaxy S3

因此,借助AndroidHive教程,我已在自己的應用程序中實現了GCM。

推送消息曾經在我的兩個設備Samsung Galaxy S3和Nexus 7上都可以使用。但是現在,推送通知僅在我的三星galaxy s3上起作用,並且給Nexus 7提供了錯誤。我的nexus 7不再想要注冊。 當我嘗試注冊Nexus 7時,出現以下信息:

    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

我真的不知道我做了什么來打破這個...任何幫助將不勝感激

它必須具有日期時間設置。 平板電腦上的日期是過去的日期。 我認為GCM無法同步過去。 我在平板電腦上重置了“時間”,它又可以正常工作了!!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM