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 2bb048f91..b7be3161d 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 @@ -180,7 +180,7 @@ private void buildNotification(NotificationManagerCompat notificationManager, Lo .setShowWhen(true); } - mBuilder.setVisibility(Notification.VISIBILITY_PRIVATE); + mBuilder.setVisibility(NotificationCompat.VISIBILITY_PRIVATE); mBuilder.setOnlyAlertOnce(true); mBuilder.setSmallIcon(localNotification.getSmallIcon(context));