From 0ab008b80bd38e4db3f1a8208278fa563d2bda18 Mon Sep 17 00:00:00 2001 From: Naveax Date: Mon, 31 Aug 2026 20:24:04 +0300 Subject: [PATCH] fix(app): hide session metadata from public lock screen Keep the ongoing VPN notification visible while marking its timer and speed content private so Android does not expose session metadata in public lock-screen previews. --- lib/components/notification.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/notification.dart b/lib/components/notification.dart index 4f8ee21..a62a2a8 100644 --- a/lib/components/notification.dart +++ b/lib/components/notification.dart @@ -65,7 +65,9 @@ class VpnNotificationManager { playSound: false, enableVibration: false, showWhen: false, - visibility: NotificationVisibility.public, + // Session time/speed is usage metadata. Keep it out of public lock-screen + // previews while leaving the ongoing VPN status notification intact. + visibility: NotificationVisibility.private, usesChronometer: false, category: AndroidNotificationCategory.service, colorized: true,