Closed Bug 1259127 Opened 8 years ago Closed 8 years ago

Content notifications: Consider adding "Read" action to notification

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox49 verified)

VERIFIED FIXED
Firefox 49
Tracking Status
firefox49 --- verified

People

(Reporter: sebastian, Assigned: sebastian)

References

Details

Attachments

(4 files)

This is how content notifications look like currently:
https://bugzilla.mozilla.org/attachment.cgi?id=8723718

For me it looks like "Notifications Setting" is the primary action and I want to click it.

Maybe we should add a "Read" or "Open" action as primary action that just does the same as clicking the notification: Open the updated sites.
Summary: Consider adding "Read" action to notification → Content notifications: Consider adding "Read" action to notification
Depends on: 1259130
This is a screenshot from YouTube for reference.

From IRC: 
16:37:56 <•mfinkle> sebastian: "read" would be a nice action approach
16:38:13 <•mfinkle> "read" lets the user know an action is available
16:38:30 <•mfinkle> instead of just thinking "thanks for telling me" and swiping it away

@antlam: What do you think? Adding the option and then looking at telemetry should be quite simple.
Flags: needinfo?(alam)
I think this is a good idea. We should measure this and compare it with our current design (no action button).

How does this look? 

[ ] READ NOW   | [ ] SETTINGS

We can use the same icon for our notifications SETTINGS button (https://design.google.com/icons/#ic_notifications_off) and the "open in browser" icon for our READ NOW button (https://design.google.com/icons/#ic_open_in_browser)
Flags: needinfo?(alam) → needinfo?(s.kaspari)
Sounds good. I'll create a patch and flag you for feedback.
Assignee: nobody → s.kaspari
Status: NEW → ASSIGNED
Flags: needinfo?(s.kaspari)
Attachment #8745334 - Flags: feedback?(alam)
Depends on: 1267639
Comment on attachment 8745334 [details]
content-notification-actions.png

Nice! let's see how this affects things
Attachment #8745334 - Flags: feedback?(alam) → feedback+
Comment on attachment 8745336 [details]
MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r=grisha

I need to add telemetry for the "Read Now" button. I'll reflag you as soon as I have a new patch ready.
Attachment #8745336 - Flags: review?(gkruglov)
Comment on attachment 8745336 [details]
MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r=grisha

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/48983/diff/1-2/
Attachment #8745336 - Attachment description: MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r?grisha → MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r?grisha,mfinkle
Attachment #8745336 - Flags: review?(mark.finkle)
Attachment #8745336 - Flags: review?(gkruglov)
(Build on top of the patches from bug 1267639)
Comment on attachment 8745336 [details]
MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r=grisha

https://reviewboard.mozilla.org/r/48983/#review46857

::: mobile/android/base/java/org/mozilla/gecko/feeds/ContentNotificationsDelegate.java:10
(Diff revision 2)
>  
>  package org.mozilla.gecko.feeds;
>  
>  import android.content.Intent;
>  import android.os.Bundle;
> +import android.support.v4.app.NotificationCompat;

Unused import

::: mobile/android/base/java/org/mozilla/gecko/feeds/ContentNotificationsDelegate.java:66
(Diff revision 2)
> -        Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.NOTIFICATION, "content_update");
>          Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, TelemetryContract.Method.INTENT, "content_update");
>  
> +        if (intent.getBooleanExtra(EXTRA_READ_BUTTON, false)) {
> +            // "READ NOW" button in notification was clicked
> +            Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.NOTIFICATION, "content_update_read_now");

Can we move "content_update_read_now" and "content_update" into constants? They're starting to be sprinkled all over the place.
Attachment #8745336 - Flags: review?(gkruglov) → review+
Comment on attachment 8745336 [details]
MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r=grisha

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/48983/diff/2-3/
Attachment #8745336 - Attachment description: MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r?grisha,mfinkle → MozReview Request: Bug 1259127 - Content notifications: Add "Read now" action. r=grisha
Attachment #8745336 - Flags: review?(mark.finkle)
https://hg.mozilla.org/mozilla-central/rev/3fc88e045b86
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Verified as fixed in build 49.0a1 (2016-05-23);
Device: Nexus 5 (Android 6.0.1).
Status: RESOLVED → VERIFIED
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: