diff --git a/android/app/src/main/java/com/zulipmobile/notifications/GCMPushNotifications.java b/android/app/src/main/java/com/zulipmobile/notifications/GCMPushNotifications.java index 74398cacdea..246575857ad 100644 --- a/android/app/src/main/java/com/zulipmobile/notifications/GCMPushNotifications.java +++ b/android/app/src/main/java/com/zulipmobile/notifications/GCMPushNotifications.java @@ -85,6 +85,7 @@ protected PushNotificationsProp getProps() { } private void updateNotification() { + Log.v(TAG, String.format("updateNotification: %d", conversations.size())); final NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); if (conversations.isEmpty()) { notificationManager.cancelAll(); @@ -98,11 +99,14 @@ private void updateNotification() { @Override public void onReceived() throws InvalidNotificationException { + Log.v(TAG, "onReceived"); final String eventType = getProps().getEvent(); if (eventType.equals("message")) { + Log.v(TAG, "onReceived: add"); addConversationToMap(getProps(), conversations); updateNotification(); } else if (eventType.equals("remove")) { + Log.v(TAG, "onReceived: remove"); removeConversationFromMap(getProps(), conversations); updateNotification(); } else {