2015-12-13 32 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,徽章必须是整数。

相关问题