fix: hide transaction details from lock-screen notifications (L14) - #578
fix: hide transaction details from lock-screen notifications (L14)#578n13 wants to merge 2 commits into
Conversation
🔍 Review — L14 (private lock-screen notifications)Verdict: 🔴 Request changes The intent, the single-construction-site targeting, and the What it does
Strengths
Findings
VerificationInadequate to support the PR's claim. The diff was not validated on a real locked device; the PR body asserts redacted lock-screen output, but source-level analysis of the exact resolved dependencies ( 🤖 AI-assisted review generated with Claude Code |
|
Superseded by #589 — uses |
Summary
Local notifications (transfer received/sent, reversible-transaction reminders, balance alerts) include transaction amounts and addresses in the title/body, and were shown in full on the Android lock screen to anyone holding the locked phone.
This sets
visibility: NotificationVisibility.privateon theAndroidNotificationDetailsinLocalNotificationsService._notificationDetails()— the single construction site used by both immediate (_showNotification) and scheduled (_scheduleNotification) notifications. On the lock screen, Android now shows the notification with sensitive content hidden; full content is visible only after unlock. Applied to all notifications from this service since all of them can disclose wallet/transaction information.On iOS, lock-screen content visibility is a per-user system setting and cannot be controlled per-notification via flutter_local_notifications, so it is left as-is per common wallet practice.
Addresses finding L14 of the 2026-07-22 mobile wallet security audit.