mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-26 00:17:47 -10:00
The probes in this patch are annotated with the extra "dom-push-api"
to distinguish from future Fennec-specific push messages. These
probes allow to determine for each user the difference:
{# sites subscribed to} - {# sites unsubscribed from}.
If we assume the same site is not subscribed to multiple times, this
is a good approximation to the total number of sites the user receives
push messages from.
To test manually:
0) Install Fennec and execute |adb shell setprop log.tag.Telemetry DEBUG|.
1) Subscribe to notifications on a site like serviceworke.rs.
Observe a UI Telemetry SAVE event, like:
D/Telemetry( 7109): SendUIEvent: event = save.1 method = service timestamp = 277456 extras = dom-push-api
2) Send a push notification using the sites' interface.
Observe a UI Telemetry PUSH_RECEIVED_MESSAGE event, like:
D/Telemetry( 7109): SendUIEvent: event = action.1 method = service timestamp = 361795 extras = dom-push-api
3) Unsubscribe to notifications by revoking permission using Site
Settings from the URL bar.
Observe a UI Telemetry PUSH_UNSUBSCRIBED_FROM_SITE event, like:
D/Telemetry( 7109): SendUIEvent: event = unsave.1 method = service timestamp = 393600 extras = dom-push-api
MozReview-Commit-ID: IOCwfXFnowA