From 6f5504b0e411b47a07e228d135f2038d370bd4f8 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 16 Jun 2020 13:48:11 +0200 Subject: [PATCH] fix(android): LocalNotification action not dismissing notification (#3112) --- .../plugin/notification/LocalNotificationManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java b/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java index d5e16939be..93224dcc4e 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java +++ b/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java @@ -87,9 +87,9 @@ public JSObject handleNotificationActionPerformed(Intent data, NotificationStora dataJson.put("inputValue", input.toString()); } String menuAction = data.getStringExtra(LocalNotificationManager.ACTION_INTENT_KEY); - if (menuAction != DEFAULT_PRESS_ACTION) { - dismissVisibleNotification(notificationId); - } + + dismissVisibleNotification(notificationId); + dataJson.put("actionId", menuAction); JSONObject request = null; try {