Closed Bug 824549 Opened 12 years ago Closed 11 years ago

[Open_][SMS]The top bar still shows new message notification although all new messages have been read.

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P3)

defect

Tracking

(blocking-b2g:-, b2g18+ fixed)

RESOLVED FIXED
B2G C3 (12dec-1jan)
blocking-b2g -
Tracking Status
b2g18 + fixed

People

(Reporter: Firefox_Mozilla, Assigned: julienw)

References

Details

(Whiteboard: interaction [UX-P1], [EU_TPE_TRIAGED])

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

Steps to reproduce:

Assuming that a new message has been received and not be read yet.
1. Launch message application.
2. Read the new message.



Actual results:

The new message indicator in top bar still display, but in fact there is no any unread message.


Expected results:

The new message indicator in top bar should update when new message has beed read.

Build Information:
gecko:   	 revision="3cbade1974968bb1e0fbb0c3386239715244a7a7"
gaia: 	 	 revision="aab72f365d73f624ede32b522f27d072c409e42e"
gonk-misc:   revision="654358494ba601a46ef9838debc95417ae464cc6"
dalvik:      revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"
librecovery: revision="e1bd90051c9e937221eb1f91c94e3cde747311a7"
moztt:       revision="6ee1f8987ef36d688f97064c003ad57849dfadf2"
external/jsmin:    revision="cec896f0affaa0226c02605ad28d42df1bc0e393"
external/opensans: revision="b5b4c226ca1d71e936153cf679dda6d3d60e2354"
device/qcom/b2g_common/mozilla-b2g: revision="41c17a6abfd5f488ec99d9aa246f5b07583403c7"
Severity: normal → critical
Not a security sensitive bug.
Group: core-security
Status: UNCONFIRMED → NEW
blocking-basecamp: --- → ?
Ever confirmed: true
Triage: BB+, C3, P3 - in the target market where SMS is used often, this is severe usability issue
blocking-basecamp: ? → +
Priority: -- → P3
Target Milestone: --- → B2G C3 (12dec-1jan)
We can not do this without bug 782211 which is not a blocking basecamp bug. If you want to block on it you have to push on the platform issue as well. :)
blocking-basecamp: + → ?
blocking-basecamp: ? → -
tracking-b2g18: --- → +
(In reply to Vivien Nicolas (:vingtetun) from comment #3)
> We can not do this without bug 782211 which is not a blocking basecamp bug.

Is that really true? There's absolutely nothing we can do to mitigate this problem without implementing an entirely new notification system?
gavin> unfortunately the System app where notifications are doesn't know anything about what happens in the Sms app. And the Sms app can't do much on the notification ([1]).

[1] https://mxr.mozilla.org/mozilla-central/source/dom/interfaces/notification/nsIDOMDesktopNotification.idl#21
This is a critical UX bug. The implication is:

1) The system fails to clear notification of new messages when the message has been read
2) Therefore system misinforms the user that they have new messages when they do not
3) Therefore system ceases to inform end user that they have new messages as it has failed to clear notification of old read messages

I would say that the inability of the notification system to be informed of related user activity at the app level impacts upon the integrity and therefore viability of the product. For a viable launch we either need to either: 

a) enable the communication between notification and apps or 
b) scale back the notification system

to provide a product that completes in the market i would absolutely advise path a)

RFI to josh and Daniel because this situation is critical and requires escalation
Flags: needinfo?(jcarpenter)
Whiteboard: interaction [UX-P1]
Flags: needinfo?(dcoloma)
As Vivien said in comment 3, you have to block on bug 782211 too if you want [a].
It doesn't sound like this is going to be resolved for v1, but this is flagged tracking-b2g18+ for high post Jan 15 prioritization. Agree 100% with Ayman that this is a must-fix. The current implementation fails to meet the basic requirements of a notification system.
Flags: needinfo?(jcarpenter)
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #4)
> (In reply to Vivien Nicolas (:vingtetun) from comment #3)
> > We can not do this without bug 782211 which is not a blocking basecamp bug.
> 
> Is that really true? There's absolutely nothing we can do to mitigate this
> problem without implementing an entirely new notification system?

Not 100%. If we have the manifestURL of the application then we can close the notifications when the application is launched. I'm unsure we have the necessary informations in Gaia though - I will check tomorrow...
Let's renominate it so it will be on the radar of triagers again (fwiw I agree that this having something here is important, even a basic fix that clear notifications when the app is opened).
blocking-basecamp: - → ?
actually we already clear the notification when the user clicks on it. I really think we can't do much more without platform work.
talked with Vivien and here is what we can try to do :
When an application is displayed, we clear any notification it may own. This would solve most cases for v1.
Summary: [Open_][SMS]The top bar still shows new message indicator although all new messages have been read. → [Open_][SMS]The top bar still shows new message notification although all new messages have been read.
I think(In reply to Julien Wajsberg [:julienw] from comment #13)
> talked with Vivien and here is what we can try to do :
> When an application is displayed, we clear any notification it may own. This
> would solve most cases for v1.

For me that is good enough, Ayman, wdyt?
Flags: needinfo?(dcoloma) → needinfo?(aymanmaat)
blocking-basecamp: ? → -
Ayman, I'll come find you today to discuss, and perhaps we can partially resolve this for v1 with some sort of rudimentary patch.
(In reply to Daniel Coloma:dcoloma from comment #14)
> I think(In reply to Julien Wajsberg [:julienw] from comment #13)
> > talked with Vivien and here is what we can try to do :
> > When an application is displayed, we clear any notification it may own. This
> > would solve most cases for v1.
> 
> For me that is good enough, Ayman, wdyt?

For me that is perfect for V1 Daniel.
Flags: needinfo?(aymanmaat)
renominating then.

For the drivers: we found a way to make it work for most cases for v1 without expensive platform work, so let's do it.
blocking-b2g: --- → tef?
Triage: TEF-, tracking-b2g18+, won't block release but would take a patch
blocking-b2g: tef? → -
blocking-basecamp: - → ---
Whiteboard: interaction [UX-P1] → interaction [UX-P1], [EU_TPE_TRIAGED]
renominating for TEF +
This is important for certification. Thanks.
blocking-b2g: - → tef?
Isabel, what is the certification requirement ? We would like to be certain if it's important or necessary for certification.
Flags: needinfo?(brg)
Depends on: 831393
Attached patch patch v1Splinter Review
Sorry, this was the only Bugzilla page that was open during Bugzilla problems so I worked on it.

We add a manifestURL in the notification node dataset so that we can query on it
and remove them at appopen.

We also send manifestURL in appopen now.

For that we need a platform patch (Bug 831393).
---
 apps/system/js/notifications.js  |   13 +++++++++++++
 apps/system/js/window_manager.js |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)
Assignee: nobody → felash
Attachment #702913 - Flags: review?(21)
Comment on attachment 702913 [details] [diff] [review]
patch v1

Very safe change for a big win. Let's land that and turn 1.0 into a great product. r+a=me.
Attachment #702913 - Flags: review?(21)
Attachment #702913 - Flags: review+
Attachment #702913 - Flags: approval-gaia-master+
(In reply to ayman maat :maat from comment #16)
> (In reply to Daniel Coloma:dcoloma from comment #14)
> > I think(In reply to Julien Wajsberg [:julienw] from comment #13)
> > > talked with Vivien and here is what we can try to do :
> > > When an application is displayed, we clear any notification it may own. This
> > > would solve most cases for v1.
> > 
> > For me that is good enough, Ayman, wdyt?
> 
> For me that is perfect for V1 Daniel.

This is Beatriz, not Isabel :-). The need is the behaviour accepted in this comment for V1.
Flags: needinfo?(brg)
Really want, would take on patch approval, but not holding the release for it - minus.
blocking-b2g: tef? → -
We will take an approval.
Hey guys, we already had an approval and it already landed.

We need an approval on Bug 831393 now.
Bug 831393 is fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
(In reply to Julien Wajsberg [:julienw] from comment #27)
> Hey guys, we already had an approval and it already landed.
> 
> We need an approval on Bug 831393 now.

I don't think it is pretty good for module 'sms'. Imagine this: we close the app sms, and then we receive several messages from other people. Then we open the app 'sms' again. Terrible thing is happen. All of the messages without read, but their notification is disappear! I think it's much better to clear a 'sms' notification after a end user read it.
田旻, agreed, this is what we want to do later when we have the new notification implementation. I think it landed on moz-central already, but we can't use this in v1.

The current behaviour is not perfect but it is close enough to what we want. The user can see in the Sms application that a message is not read.

Please file another bug so that we change this in v2 (as we should !).
(In reply to Julien Wajsberg [:julienw] from comment #30)
> 田旻, agreed, this is what we want to do later when we have the new
> notification implementation. I think it landed on moz-central already, but
> we can't use this in v1.
> 
> The current behavior is not perfect but it is close enough to what we want.
> The user can see in the sms application that a message is not read.
> 
> Please file another bug so that we change this in v2 (as we should !).

But if the end user close sms app again, he will forgot there are still a lot of messages still not read. What's more, the event "handleAppopen" will just been triggered when we start the  sms app. Imagine this, we are just in this sms application, and we receive a lot short messages. Then we read all of these now messages. All of the notifications are still display on the toorbar Without trigger the event "handleAppopen" although we have read all of them and they are not new any longger.
We're aware of that, we initially decided it is good enough for v1, but please file a new bug to have a discussion about this, maybe we can decide otherwise now. (note: I doubt it).
I have file a new bug marked 855165 in mozilla bugzilla.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: