In your NotificationServiceExtension class, implement tracking for receiving/deleting push notifications.
@OverridepublicbooleanonMessageReceived(finalPushMessage message) { super.onMessageReceived(message);if (!message.isSilent()) {/** * In this example, a random number of notifications is simply indicated. * You need to implement the logic for counting notifications yourself. */int notificationCount =1;if (getApplicationContext()!=null) {MyPushReceiver.changeAppIcon(getApplicationContext(), notificationCount); } }}/*** Pushwoosh callback for tracking push notification removal from Notification Center.*/@OverrideprotectedvoidonMessageCanceled(PushMessage message) { super.onMessageCanceled(message);if (!message.isSilent()) {/** * In this example, a random number of notifications is simply indicated. * You need to implement the logic for counting notifications yourself. */int notificationCount =0;if (getApplicationContext()!=null) {MyPushReceiver.changeAppIcon(getApplicationContext(), notificationCount); } }}