Skip to content

Commit 6f5504b

Browse files
authored
fix(android): LocalNotification action not dismissing notification (#3112)
1 parent b8bd6ab commit 6f5504b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

android/capacitor/src/main/java/com/getcapacitor/plugin/notification/LocalNotificationManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public JSObject handleNotificationActionPerformed(Intent data, NotificationStora
8787
dataJson.put("inputValue", input.toString());
8888
}
8989
String menuAction = data.getStringExtra(LocalNotificationManager.ACTION_INTENT_KEY);
90-
if (menuAction != DEFAULT_PRESS_ACTION) {
91-
dismissVisibleNotification(notificationId);
92-
}
90+
91+
dismissVisibleNotification(notificationId);
92+
9393
dataJson.put("actionId", menuAction);
9494
JSONObject request = null;
9595
try {

0 commit comments

Comments
 (0)