Closed Bug 2065551 Opened 3 months ago Closed 2 months ago

Privacy Report: Change the privacy report to be sent within a time window.

Categories

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

All
Android
task
Points:
3

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed
firefox159 --- verified

People

(Reporter: vkumar, Assigned: rebecatudor273)

References

Details

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

Attachments

(1 file, 1 external file)

To avoid sending the privacy report at night, send it the next noon after the 7 day interval has been hit.

Summary: Change the privacy report to be sent at the next noon. → Privacy Report: Change the privacy report to be sent at the next noon.
Whiteboard: [fxdroid] [android-activation-trust]
No longer blocks: 2060524
Depends on: 2060524
Points: --- → 3
Assignee: nobody → rebecatudor273

Schedule the privacy report notification at the configured interval
within the notification time window, based on the user's local timezone.

Attachment #9632725 - Attachment description: Bug 2065551 - Schedule privacy report notification for 3 PM. → Bug 2065551 - Schedule the privacy report notification for noon.
Attachment #9632725 - Attachment description: Bug 2065551 - Schedule the privacy report notification for noon. → Bug 2065551 - [experiment] Schedule weekly notifications within a time window.
Pushed by rtudor@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a8b1c67ffb08 https://hg.mozilla.org/integration/autoland/rev/60a2413bded7 [experiment] Schedule weekly notifications within a time window. r=android-reviewers,gmalekpour,twhite

This was discussed with the PM, and it was decided to send the notification within a time window (12:00 PM-5:00 PM) rather than only at noon.

Summary: Privacy Report: Change the privacy report to be sent at the next noon. → Privacy Report: Change the privacy report to be sent within a time window.

Notes:

Existing installations with the privacy notification enabled via the secret setting will need a fresh install, as they may already have a periodic WorkManager request registered under the same unique work name.

STR:

  1. Set the device date/time according to the test case below.
  2. Install and launch Firefox.
  3. Complete onboarding.
  4. Make sure both "weekly Privacy Report notification feature" and "weekly Privacy Report notification trackers over threshold" are enabled.
  5. Enable notifications.
  6. Change device date to 7 days later.
  7. Check the time at which the Privacy Report notification is delivered.

Expected results

  • The Privacy Report notification is delivered once per week.
  • The notification should occur within the 12:00 PM–5:00 PM local-time window.
  • The notification time should not progressively drift outside this window on subsequent weeks.
  • If the scheduled weekly point falls outside the allowed window, the notification is moved to the appropriate time within the next valid window rather than being delivered during the night/early morning.
  • Disabling the notifications/feature prevents the expected notification from being delivered.

Examples

  • Onboarding finished before 12:00 PM -> the first notification should be delivered 7 days later at 12:00 PM. Subsequent notifications should be delivered every 7 days at 12:00 PM.
  • Onboarding finished at any time between 12:00 PM and 5:00 PM -> he first notification should be delivered 7 days later at the same time onboarding was completed. Subsequent notifications should continue every 7 days at that time.
  • Onboarding finished after 5:00 PM -> The first notification should be delivered 8 days later at 12:00 PM. Subsequent notifications should then be delivered every 7 days at 12:00 PM.
    Note: The notification may be delivered later than the calculated time due to Android/WorkManager scheduling.
Flags: qe-verify+
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch

Verified the notification scheduling and delivery timing logic on Firefox 159.0a1 (Poco M4 Pro (Android 12). All time windows work as expected:

  • Onboarding completed before 12:00 PM -> Delivered 7 days later at 12:00 PM.
  • Onboarding completed between 12:00 PM – 5:00 PM -> Delivered 7 days later at the exact onboarding time.
  • Onboarding completed after 5:00 PM -> Delivered 8 days later at 12:00 PM.

Note:
The notification body currently displays a hardcoded tracker count ("48") regardless of the actual number of trackers blocked. We have logged a follow-up bug to track the static tracker count issue: 2078619

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: