Skip to content

fix: hide local notifications from lock screen (L14) - #589

Merged
n13 merged 1 commit into
mainfrom
fix/l14-secret-notifications
Jul 28, 2026
Merged

fix: hide local notifications from lock screen (L14)#589
n13 merged 1 commit into
mainfrom
fix/l14-secret-notifications

Conversation

@n13

@n13 n13 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Sets visibility: NotificationVisibility.secret on the single AndroidNotificationDetails construction site in LocalNotificationsService._notificationDetails() (covers both immediate and scheduled notifications, including FCM-foreground pushes routed through the same path).

.secret hides the notification entirely on a secure lock screen, enforced at the notification level regardless of the device's global lock-screen content setting. (.private — as in #578 — is a no-op: it equals the builder default, and its redaction only applies when the user's global setting already hides sensitive content.)

iOS lock-screen previews remain a per-user system setting that apps cannot control.

Addresses finding L14 of the 2026-07-22 mobile wallet security audit. Supersedes #578.

Set NotificationVisibility.secret on the single AndroidNotificationDetails
construction site so notifications carrying transaction amounts/addresses
reveal nothing on a secure lock screen, regardless of the device's global
lock-screen content setting.
@n13
n13 merged commit a49be71 into main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant