2015-12-13 153 views
0

我有一個Worklight應用程序,並且它在前臺時未收到任何推送通知。它在後臺工作正常。Worklight:應用程序無法在前臺收到推送通知

Android的日誌我可以看到的是

12-14 00:35:35.304: V/GCMBroadcastReceiver(26076): onReceive: com.google.android.c2dm.intent.RECEIVE 
12-14 00:35:35.304: V/GCMBroadcastReceiver(26076): GCM IntentService class: com.FinacleMobileApp.GCMIntentService 
12-14 00:35:35.304: V/GCMBaseIntentService(26076): Acquiring wakelock 
12-14 00:35:35.308: V/GCMBaseIntentService(26076): Intent service name: GCMIntentService-DynamicSenderIds-8 
12-14 00:35:35.314: D/GCMIntentService(26076): GCMIntentService.onMessage in GCMIntentService.java:107 :: WLGCMIntentService: Received a message from the GCM server 
12-14 00:35:35.315: V/GCMBaseIntentService(26076): Releasing wakelock 
12-14 00:35:35.323: W/GCMIntentService(26076): GCMIntentService.onMessage in GCMIntentService.java:114 :: Unable to update badge while received push notification, becasue failed to parse badge number null, badge must be an integer number. 
12-14 00:35:35.326: D/GCMIntentService(26076): GCMIntentService.addToIntentQueue in GCMIntentService.java:147 :: WLGCMIntentService: App is on foreground but init is not comeplete. Queue the intent for later re-sending when app is back on foreground. 
12-14 00:35:35.328: D/push(26076): Push$1.onReceive in Push.java:91 :: Push: Queuing message for dispatch to javascript 
12-14 00:36:04.067: D/CordovaActivity(26076): Paused the application! 

任何一個可以告訴我,爲什麼這可能發生。

回答

0

我首先糾正你得到有關於徽章,以確保這不會阻止其正常工作異常:

12-14 00:35:35.323:W/GCMIntentService(26076 ):GCMIntentService.java中的GCMIntentService.onMessage:114 ::無法在收到推送通知時更新徽章,因爲無法解析徽章號碼null,徽章必須是整數。

相關問題