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 a4fd2b3d31..2bb048f919 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 @@ -174,6 +174,12 @@ private void buildNotification(NotificationManagerCompat notificationManager, Lo mBuilder.setGroup(group); } + // make sure scheduled time is shown instead of display time + if (localNotification.isScheduled()) { + mBuilder.setWhen(localNotification.getSchedule().getAt().getTime()) + .setShowWhen(true); + } + mBuilder.setVisibility(Notification.VISIBILITY_PRIVATE); mBuilder.setOnlyAlertOnce(true);