Files
firefox/mobile/android/docs
Nick Alexander a619493435 Bug 1259507 - Add UI Telemetry probes for DOM Push API in Fennec. r=mfinkle
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
2016-03-29 11:39:35 -07:00
..
…
…
…