Open Bug 2058997 Opened 4 months ago Updated 28 days ago

[meta] Weekly Privacy Report Notifications

Categories

(Firefox for Android :: Experimentation and Telemetry, enhancement)

All
Android
enhancement

Tracking

()

People

(Reporter: towhite, Assigned: towhite)

References

(Depends on 5 open bugs)

Details

(Keywords: meta, Whiteboard: [android-activation-trust][fxdroid])

Introduce a weekly Privacy Report notification that helps users stay informed about how Firefox is protecting their privacy. Users who have opted in to notifications will receive a weekly notification linking directly to the Privacy Dashboard (introduced in Firefox 153), with the message dynamically populated using their Tracking Protection activity from the previous seven days.


A feasibility spike concluded that this is best implemented as a standalone feature rather than a Nimbus-authored message. While rollout will remain controlled by Nimbus, the notification itself is generated on-device because Nimbus does not support recurring messages or runtime text substitution.

Design spec

Possible Implementation tasks

  • Weekly notification worker scaffolding — Introduce a new periodic WorkManager worker, separate from MessageNotificationWorker, scheduled at a 7-day interval anchored to onboarding completion (the first notification fires 7 days after the user completes onboarding, then every 7 days thereafter).
  • Weekly tracker count integration — Wire the worker to TrackingProtectionUseCases.fetchTrackingEvents for a rolling 7-day window.
  • Localized notification string — Add localized string resources (including plural variants) and format the final notification text in application code using context.getString/getQuantityString, since Nimbus does not support runtime placeholder substitution.
  • Dedicated notification channel — Create a dedicated NotificationChannel for Privacy Report notifications, separate from the marketing channel, allowing users to independently manage notification preferences through Android's per-channel settings.
  • Click handling / deep link — Launch the Privacy Dashboard when the notification is tapped and handle notification dismissal appropriately.
  • Telemetry — Add standalone telemetry probes independent of the messaging feature.
  • Nimbus feature flag — Add a Nimbus feature flag to control enablement and rollout without routing the notification through Nimbus's messaging pipeline.
  • Tracking Protection eligibility — Only schedule and display the notification when Tracking Protection is enabled, ensuring the reported tracker count is meaningful.

Notes

  • Exact notification copy is still work in progress and will be finalized with Product and UX before implementation.
  • This implementation is intentionally decoupled from Nimbus's messaging pipeline and storage for the initial experiment. If the experiment proves successful, the architecture can be revisited and integrated more closely with the messaging system (see the linked spike for rationale).
Depends on: 2059001
Depends on: 2060524
Assignee: nobody → towhite
Depends on: 2065541
No longer depends on: 2065541
Depends on: 2086620
You need to log in before you can comment on or make changes to this bug.