diff --git a/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java b/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java index 4456f5255..cbb3146b9 100644 --- a/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java +++ b/src/android/com/adobe/phonegap/push/BackgroundActionButtonHandler.java @@ -21,6 +21,10 @@ public void onReceive(Context context, Intent intent) { NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancel(FCMService.getAppName(context), notId); + // Clear list of messages when an action button is clicked. + FCMService fcm = new FCMService(); + fcm.setNotification(notId, ""); + if (extras != null) { Bundle originalExtras = extras.getBundle(PUSH_BUNDLE);