我在使用 cordova 推送通知插件注册 Android 设备时收到以下 logcat 消息。
01-25 19:33:34.871: V/GCMRegistrar(6495): Is registered on server: false
01-25 19:33:34.871: D/GCMRegistrar(6495): resetting backoff for com.example.homework
01-25 19:33:34.941: V/GCMRegistrar(6495): Registering app com.example.homework of senders 19845108581
01-25 19:33:35.011: D/memalloc(6495): ashmem: Mapped buffer base:0x534bb000 size:1536000 fd:90
01-25 19:33:35.011: D/CordovaLog(6495): report:deviceready
01-25 19:33:35.011: I/Web Console(6495): report:deviceready at file:///android_asset/www/js/index.js:122
01-25 19:33:35.162: V/GCMBroadcastReceiver(6495): onReceive: com.google.android.c2dm.intent.REGISTRATION
01-25 19:33:35.162: V/GCMBroadcastReceiver(6495): GCM IntentService class: com.arellomobile.android.push.PushGCMIntentService
01-25 19:33:35.172: V/GCMBaseIntentService(6495): Acquiring wakelock
01-25 19:33:35.192: D/GCMBaseIntentService(6495): handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null
01-25 19:33:35.192: D/GCMBaseIntentService(6495): Registration error: SERVICE_NOT_AVAILABLE
01-25 19:33:35.192: I/GCMIntentService(6495): Received recoverable error: SERVICE_NOT_AVAILABLE
01-25 19:33:35.192: D/GCMBaseIntentService(6495): Scheduling registration retry, backoff = 2788 (3000)
01-25 19:33:35.192: D/Socket_Alarm(6495): registerHTCSocketMonitorCallBack
01-25 19:33:35.192: D/Socket_Alarm(6495): set mSocketMonitor
01-25 19:33:35.192: D/Socket_Alarm(6495): HTCSocketMonitorImpl::HTCSocketMonitorImpl
01-25 19:33:35.352: V/GCMBaseIntentService(6495): Releasing wakelock
01-25 19:33:36.603: D/DroidGap(6495): onMessage(spinner,stop)
01-25 19:35:03.978: V/webview(6495): hitTestResult use fallback
我在 javascript 文件中为 projectid 和 appid 设置了正确的值。而且我的安卓设备也配置了谷歌账户。我正在关注本指南 http://www.pushwoosh.com/programming-push-notification/android-gcm-push-notifications-guide/
任何建议都会有所帮助。