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 2a8f60c25..fb6a86658 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 @@ -253,6 +253,8 @@ private void createActionIntents(LocalNotification localNotification, Notificati dissmissIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); dissmissIntent.putExtra(NOTIFICATION_INTENT_KEY, localNotification.getId()); dissmissIntent.putExtra(ACTION_INTENT_KEY, "dismiss"); + LocalNotificationSchedule schedule = localNotification.getSchedule(); + dissmissIntent.putExtra(NOTIFICATION_IS_REMOVABLE_KEY, schedule == null || schedule.isRemovable()); PendingIntent deleteIntent = PendingIntent.getBroadcast( context, localNotification.getId(), dissmissIntent, 0); mBuilder.setDeleteIntent(deleteIntent);