Closed Bug 2060524 Opened 3 months ago Closed 3 months ago

Add a recurring weekly Tracking Protection notification

Categories

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

All
Android
task

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: towhite, Assigned: towhite)

References

(Blocks 4 open bugs)

Details

(Whiteboard: [android-activation-trust][fxdroid])

Attachments

(1 file, 4 external files, 6 obsolete files)

731.24 KB, video/mp4
Details

Summary

Add the core functionality for the privacy report notification feature experiment.

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.
  • [ ] 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.
  • [ ] Secret setting — Add a secret setting to allow for simple testing of the feature.
Assignee: nobody → towhite
Attachment #9624739 - Attachment is obsolete: true
Attachment #9624740 - Attachment is obsolete: true
Attachment #9624741 - Attachment is obsolete: true
Attachment #9624742 - Attachment is obsolete: true
Attachment #9624743 - Attachment is obsolete: true
Blocks: 2062560
Blocks: 2062685
Attachment #9624746 - Attachment description: WIP: Bug 2060524 - Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline. → Bug 2060524 - Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline.
Attachment #9624747 - Attachment description: WIP: Bug 2060524 - Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → Bug 2060524 - Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Attachment #9624748 - Attachment description: WIP: Bug 2060524 - Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity. → Bug 2060524 - Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity.
Attachment #9624749 - Attachment description: WIP: Bug 2060524 - Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, routing clicks and dismissals through a dedicated BroadcastReceiver. → Bug 2060524 - Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, routing clicks and dismissals through a dedicated BroadcastReceiver.
Attachment #9624746 - Attachment description: Bug 2060524 - Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline. → Bug 2060524 - [experiment] Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline.
Attachment #9624747 - Attachment description: Bug 2060524 - Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Attachment #9624748 - Attachment description: Bug 2060524 - Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity. → Bug 2060524 - [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity.
Attachment #9624749 - Attachment description: Bug 2060524 - Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, routing clicks and dismissals through a dedicated BroadcastReceiver. → Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, routing clicks and dismissals through a dedicated BroadcastReceiver.
Attachment #9624746 - Attachment description: Bug 2060524 - [experiment] Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline. → Bug 2060524 - Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline.
Attachment #9624747 - Attachment description: Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → Bug 2060524 - Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Attachment #9624748 - Attachment description: Bug 2060524 - [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity. → Bug 2060524 - Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity.
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, routing clicks and dismissals through a dedicated BroadcastReceiver. → Bug 2060524 - Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver.
Attachment #9624746 - Attachment description: Bug 2060524 - Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline. → Bug 2060524 - [experiment] Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline.
Attachment #9624747 - Attachment description: Bug 2060524 - Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Attachment #9624748 - Attachment description: Bug 2060524 - Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity. → Bug 2060524 - [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity.
Attachment #9624749 - Attachment description: Bug 2060524 - Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver. → Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver.
Attachment #9624747 - Attachment description: Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → WIP Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Attachment #9624747 - Attachment description: WIP Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. → Bug 2060524 - [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard.
Blocks: 2063540
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver. → Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification.
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification. → Bug 2060524 - [experiment] Part 4: Add telemetry for the weekly privacy report notification.
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add telemetry for the weekly privacy report notification. → Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver.
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add shown/clicked/dismissed telemetry for the weekly privacy report notification, and stop routing the notification click through a BroadcastReceiver. → Bug 2060524 - [experiment] Part 4: Add telemetry for the weekly privacy report notification,
Attachment #9624746 - Attachment description: Bug 2060524 - [experiment] Part 1: Add a Nimbus feature flag and secret setting to control enablement and rollout without routing the notification through Nimbus's messaging pipeline. → Bug 2060524 - [experiment] Part 1: Add a Nimbus feature flag and secret setting to control feature enablement.
Attachment #9624748 - Attachment description: Bug 2060524 - [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly, anchored to onboarding completion, from HomeActivity. → Bug 2060524 - [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly.
Attachment #9624749 - Attachment description: Bug 2060524 - [experiment] Part 4: Add telemetry for the weekly privacy report notification, → Bug 2060524 - [experiment] Part 4: Add telemetry for the weekly privacy report notification.
Attachment #9626351 - Attachment description: Bug 2060524 - [experiment] Part 5: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. → Bug 2060524 - [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification.
Depends on: 2065488
Blocks: 2065488
No longer depends on: 2065488
Attachment #9624749 - Attachment is obsolete: true
Blocks: 2065540
Blocks: 2065541
Depends on: 2065550
Depends on: 2065551
Blocks: 2065565
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/46cb70efb368 https://hg.mozilla.org/integration/autoland/rev/f3bd7f891e89 [experiment] Part 1: Add a Nimbus feature flag and secret setting to control feature enablement. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/87edd1493eda https://hg.mozilla.org/integration/autoland/rev/b0fe6ab28764 [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. r=android-reviewers,sfamisa,android-l10n-reviewers,parker https://github.com/mozilla-firefox/firefox/commit/21561cf875fd https://hg.mozilla.org/integration/autoland/rev/3a5547cf33f4 [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/23dcd6082f85 https://hg.mozilla.org/integration/autoland/rev/3204a3becec7 [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. r=android-reviewers,sfamisa
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a0d5cc322414 https://hg.mozilla.org/integration/autoland/rev/df7f5a14c32e Revert "Bug 2060524 - [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. r=android-reviewers,sfamisa" for causing fenix-debug failures HomeDeepLinkIntentProcessorTest.kt.

Reverted this because it was causing fenix-debug failures HomeDeepLinkIntentProcessorTest.kt.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: file:///builds/worker/checkouts/gecko/mobile/android/fenix/app/src/test/java/org/mozilla/fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt:451:21: error: No parameter with name 'source' found.
Flags: needinfo?(towhite)
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/02221a88247d https://hg.mozilla.org/integration/autoland/rev/a24eefc721f6 [experiment] Part 1: Add a Nimbus feature flag and secret setting to control feature enablement. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/5c0fbcea4d3e https://hg.mozilla.org/integration/autoland/rev/c90f78c17e9b [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. r=android-reviewers,sfamisa,android-l10n-reviewers,parker https://github.com/mozilla-firefox/firefox/commit/d4947cf74c53 https://hg.mozilla.org/integration/autoland/rev/d4bb39e4295c [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/b187adb78c33 https://hg.mozilla.org/integration/autoland/rev/322c7d5adcf6 [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. r=android-reviewers,sfamisa
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d39603dcbe08 https://hg.mozilla.org/integration/autoland/rev/3738fc7bc966 Revert "Bug 2060524 - [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. r=android-reviewers,sfamisa" for causing fenix debug failures
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 156 Branch → ---
Blocks: 2065550, 2065551
No longer depends on: 2065550, 2065551
Flags: needinfo?(towhite)
Blocks: 2066785
Pushed by icedicedcoffee@proton.me: https://github.com/mozilla-firefox/firefox/commit/d0dfcd7a6117 https://hg.mozilla.org/integration/autoland/rev/9b047fc088db [experiment] Part 1: Add a Nimbus feature flag and secret setting to control feature enablement. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/8cb217538896 https://hg.mozilla.org/integration/autoland/rev/866944f2ce9d [experiment] Part 2: Add the notification channel and logic to build and show the weekly privacy report notification, deep-linking to the protections dashboard. r=android-reviewers,sfamisa,android-l10n-reviewers,parker https://github.com/mozilla-firefox/firefox/commit/07c4c6c4b470 https://hg.mozilla.org/integration/autoland/rev/cd443cdc7bb4 [experiment] Part 3: Add the PrivacyReportNotificationWorker and schedule it weekly. r=android-reviewers,sfamisa https://github.com/mozilla-firefox/firefox/commit/729b8efc64aa https://hg.mozilla.org/integration/autoland/rev/4a218d463ced [experiment] Part 4: Added a secret setting to force the number of trackers to meet the threshold for showing the privacy report notification. r=android-reviewers,sfamisa
Blocks: 2070591
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: