1

cordova 푸시 알림 플러그인을 사용하여 Android 기기를 등록하는 중에 다음 로그캣 메시지가 표시됩니다.Android 기기를 GCM 및 PushWoosh로 등록하는 중에 오류 메시지 받기

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에 올바른 값을 설정하고 있습니다. 또한 내 안드로이드 장치는 Google 계정으로 구성됩니다. 이 가이드를 따르고 있습니다. http://www.pushwoosh.com/programming-push-notification/android-gcm-push-notifications-guide/

어떤 제안이 도움이 될 것입니다.

+1

"SERVICE_NOT_AVAILABLE"오류가 있습니다. 앱이 등록을 시도 할 때 기기가 인터넷에 연결되어 있지 않았거나 Google 서비스가 다운되었을 가능성이 있습니다 (가능성이 낮음). – Eran

+0

아니요, 기기가 Wi-Fi를 통해 인터넷에 연결되어 있고 정상적으로 작동합니다. 'SERVICE_NOT_AVAILABLE'오류가 요청을 처리하는 동안 GCM 서버에 내부 오류가 있었거나 서버가 일시적으로 사용할 수 없음을 나타내는 500-599 범위 (예 : 500 또는 503)에 있음을 발견했습니다.하지만 나는 3-4 일 이상 지속적으로 서비스를 시도하고 있으며 동일한 오류를 보여줍니다. – sourav

답변

3

나는 당신과 같은 문제가있어, 당신의 장치의 인터넷 연결을 확인하십시오. 속도가 느려질 수도 있습니다. GCM 서버에 연결하지 못할 수도 있습니다.