Closed Bug 1260521 Opened 8 years ago Closed 3 years ago

Add UI Telemetry probes for Web Notifications to Fennec

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: nalexander, Unassigned)

References

Details

As part of Bug 1259507, we're going to start collecting simple events when Push messages are subscribed to / unsubscribed to / received.  We expect most Push messages to result in user visible notifications that will bring users back into Fennec, but right now we have no UI Telemetry tracking if that happens.  (As far as I can see in https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/NotificationClient.java and https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/NotificationHelper.java.

This ticket tracks trying to make sense of and track (a subset of) the actions that can happen in a Web Notification context.
We'll need to add some telemetry when handling the PendingIntents that are created by the Notifications code (and possibly also add some kind of DeleteIntent) to either GeckoAppShell when the alert notification is created [1], or to NotificationHandler in general when it makes notifications [2].

The ACTION_ALERT_CALLBACK is the action of the intent and we can just add telemetry there [3], or in the process...() method if we want details about the alert itself.

[1] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java#1413
[2] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/NotificationHandler.java#58
[3] http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java#1873
I assume we'll have a few situations we want to track:
1. Showing a Web Notification -> (SHOW, NOTIFICATION, <?>)
2. Tapping the Web Notification -> (ACTION, NOTIFICATION, <?>)
3. Is there a button on the notification? If so, tapping the button -> (ACTION, BUTTON, "notification-?")

Where "?" is something contextually relevant. In #1 and #2 it might be "web-notification".
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.