Closed
Bug 796904
Opened 12 years ago
Closed 12 years ago
[sms] messages of class 0 shows in status bar & lock screen but not available in messages view
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect, P1)
Tracking
(blocking-basecamp:+)
People
(Reporter: vicamo, Assigned: borjasalguero)
References
Details
(Keywords: feature)
Attachments
(3 files, 1 obsolete file)
When underyling ril component has received a message of message class 0, by specification, it skips message saving and notifies content directly. User sees a new message shown in both status bar and lock screen. But when he goes to message app and try to read the received message, there is nothing found, because that message was not saved in database. Here is an use case in SIM activation process. The carrier sends a SMS of message class 0 to notify the user of service unavailable or similar events: > I/Gecko ( 106): -*- RadioInterfaceLayer: Received message from worker: > {"SMSC":"+550112102202","mti":0,"udhi":0,"sender":"+8955","recipient":null, > "pid":0,"epid":0,"dcs":240,"mwi":null,"replace":false,"header":null,"data":null, > "timestamp":1349169612000,"status":null,"scts":null,"dt":null,"encoding":0, > "messageClass":0, > "fullBody":"Por favor, aguarde alguns minutos, pois a ativacao esta em andamento", > "rilMessageType":"sms-received"} See also bug 736706, 3GPP TS 23.038, 3GPP TS 23.040.
Reporter | ||
Comment 1•12 years ago
|
||
The `message class` attribute is not exposed to content through the SMS API now. We'll need that to perform extra handling for class 0 messages.
Reporter | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Reporter | ||
Comment 2•12 years ago
|
||
attached is the ss of a Android device showing a just received class 0 message.
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Comment 5•12 years ago
|
||
if user press cancel, the sms is not stored
Reporter | ||
Updated•12 years ago
|
Attachment #667093 -
Attachment is obsolete: true
Comment 6•12 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #1) > The `message class` attribute is not exposed to content through the SMS API > now. We'll need that to perform extra handling for class 0 messages. Either this is a DOM API bug, or this is a Gaia bug blocked by a DOM API bug. Is that correct? Please file or change the product/component accordingly.
Reporter | ||
Comment 7•12 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #6) > (In reply to Vicamo Yang [:vicamo][:vyang] from comment #1) > > The `message class` attribute is not exposed to content through the SMS API > > now. We'll need that to perform extra handling for class 0 messages. > > Either this is a DOM API bug, or this is a Gaia bug blocked by a DOM API bug. > > Is that correct? Please file or change the product/component accordingly. Ah, filed a DOM API bug 797277. And, there is still one more thing to discuss about. The UI attached by Beatriz supports saving the message after user's confirmation. This is also impossible for now because that message has either already been saved or will be discarded after the notification. I guess we'll need something like asking users for permission, but I'm afraid that it will show another popup and confuse users.
Comment 8•12 years ago
|
||
Vicamo, I thought the desired behavior (for Brazil) is simply put the received message on the line 2 of the carrier info on lock screen, as https://github.com/mozilla-b2g/gaia/issues/4559 suggests? (Gods I hate this Github - Bugzilla separation)
Reporter | ||
Comment 9•12 years ago
|
||
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) from comment #8) > Vicamo, I thought the desired behavior (for Brazil) is simply put the > received message on the line 2 of the carrier info on lock screen, as > https://github.com/mozilla-b2g/gaia/issues/4559 suggests? > > (Gods I hate this Github - Bugzilla separation) No, that's different things. For v1, I'd rather have a popup that contains only a OK button, that is, the message can't be saved and you'll need a message class attribute to know which message should bring up a popup. What do you think?
Comment 10•12 years ago
|
||
Waiting for reply from Daniel for clarification on whether this blocks, and a specification about what class 0 is.
Flags: needinfo?
Reporter | ||
Comment 11•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #10) > Waiting for reply from Daniel for clarification on whether this blocks, and > a specification about what class 0 is. For 2), please see bug 797277 comment #2. In short, that's a tag means the message should not be stored by default, but UI can still provide other options. Because we don't have this attribute exposed in API, then there is no chance that UI can provide alternative options at all.
Flags: needinfo?
Comment 12•12 years ago
|
||
How bad would that be to simply consider those messages as regular messages? (ie. saved in the DB)
Reporter | ||
Comment 13•12 years ago
|
||
(In reply to Mounir Lamouri (:mounir) from comment #12) > How bad would that be to simply consider those messages as regular messages? > (ie. saved in the DB) That's not specification conformal. Shouldn't we follow the standard as possible?
Comment 14•12 years ago
|
||
It's not really for me to say. However, we are past feature freeze I would say that at that point, we should just try to find a compromise.
Comment 15•12 years ago
|
||
This is a basic functionality in SMS behaviour. IMHO we should follow specs because there is a GCF (Global certification forum) (similar to PTCRB but in Europe) requirement. In GCF all the test cases are mandatory and it is important to get that certification. The test case is: SMS-1.3.1 (GCF 2G & 3G) We cannot measure the impact of not supporting this basic functionality in all the countries. Many different operator services use them for different reasons.
Comment 16•12 years ago
|
||
Chris - Can you give some feedback on this? Can these messages be treated as normal messages?
Comment 17•12 years ago
|
||
Pre-emptive blocking because required for certification. Vicamo, what's required to fix this bug? Assigning to you for now for estimation. We can re-assign once you explain what's needed to fix.
Assignee: nobody → vyang
blocking-basecamp: ? → +
Flags: needinfo?(brg)
Updated•12 years ago
|
Priority: -- → P2
Reporter | ||
Comment 18•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #17) > Vicamo, what's required to fix this bug? Assigning to you for now for > estimation. We can re-assign once you explain what's needed to fix. I've opened bug 797277 and have had some WIP patches. Bug 797277 adds new SmsMessage attribute `messageClass` so Gaia can identify a message categorized as Message Class 0 and do what ever it wants to do. In comment #9, for V1, I suggested we have a dialog showing the text message with only one button "OK" and still discard the message without saving it.
Reporter | ||
Comment 19•12 years ago
|
||
(In reply to Mounir Lamouri (:mounir) from comment #12) > How bad would that be to simply consider those messages as regular messages? > (ie. saved in the DB) Just got SMS test cases from one of our partners. One of them is for message class 0 and is marked as critical. The test steps are: 1. send a SMS with message class set to 0 via test tool to device under test(DUT). 2. ensure the message is displayed but not stored on DUT. 3. turn off DUT and turn on again. 4. ensure the message is still not stored on DUT.
Comment 20•12 years ago
|
||
I was reading about those class 0 messages and I found something interesting [1]. If someone send you a class 0 message that you can't store in the phone's memory and that doesn't show the number of the sender, this can be used to spoof the user because the user might thing this is a system popup or even a carrier information. Seems like the iPhone wasn't allowing the user to save class 0 messages and some users were receiving message like "Virus detected, you should restore your phone.". No big issue but better to not fall to learn from other's mistakes. [1] (fr) http://www.journaldugeek.com/2012/06/22/un-mysterieux-virus-sevit-sur-iphone/
Updated•12 years ago
|
Priority: P2 → --
Updated•12 years ago
|
Priority: -- → P1
Comment 21•12 years ago
|
||
(In reply to Mounir Lamouri (:mounir) from comment #20) > No big issue but better to > not fall to learn from other's mistakes. > Agree! It is easy if we just follow the specs! and do not store them in the device.
Flags: needinfo?(brg)
Comment 22•12 years ago
|
||
We're marking this bug with the C1 milestone since it follows the criteria of "unfinished feature work" (see https://etherpad.mozilla.org/b2g-convergence-schedule). If this work is not finished by Nov19, this bug will need an exception and will be called out at the upcoming Exec Review.
Target Milestone: --- → B2G C1 (to 19nov)
Reporter | ||
Comment 23•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #17) > Vicamo, what's required to fix this bug? Assigning to you for now for > estimation. We can re-assign once you explain what's needed to fix. Please help find one Gaia developer for this. I've explained what to do in comment #18.
Assignee: vyang → nobody
Updated•12 years ago
|
Assignee: nobody → vyang
Assignee: vyang → fbsc
Updated•12 years ago
|
Component: Gaia → Gaia::SMS
Assignee | ||
Comment 24•12 years ago
|
||
We need to make a workaround because background service is not working with prompts.... and one solution could be use 'system-messages'. I would update the target milestone for next one, due to following week I will create the patch with [:etienne]
Comment 25•12 years ago
|
||
Certification requirement - granting an exception here and moving into the C2 milestone.
Target Milestone: B2G C1 (to 19nov) → B2G C2 (20nov-10dec)
Comment 26•12 years ago
|
||
Any update on the approach here?
Assignee | ||
Comment 27•12 years ago
|
||
Tomorrow I will test the approach and if everything works as expected I will make the PR. It's a little bit complicated to test because not all carries have this type of message (or it's not easy to generate).
Assignee | ||
Comment 28•12 years ago
|
||
Attachment #688174 -
Flags: review?(etienne)
Assignee | ||
Comment 29•12 years ago
|
||
Tested with [:brg] and it's working as expected ;).
Comment 30•12 years ago
|
||
My comments are on github, should be easy enough to fix! :)
Assignee | ||
Comment 31•12 years ago
|
||
All comments addressed!
Comment 32•12 years ago
|
||
Can you do those last changes so we can merge? (last comment + commit message)
Assignee | ||
Comment 33•12 years ago
|
||
[:etienne] Sorry for the delay, it's complicated to test! All suggestions added. Thanks!
Comment 34•12 years ago
|
||
Comment on attachment 688174 [details]
PR
Thanks!
Attachment #688174 -
Flags: review?(etienne) → review+
Comment 35•12 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/8f3578363db5ad9aaf25d7a86335fedbed6519c8
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Blocks: b2g-v1-certification
You need to log in
before you can comment on or make changes to this bug.
Description
•