Closed
Bug 877751
Opened 11 years ago
Closed 11 years ago
[CBS] [User Story] Handle Broadcast Message Classes 0 and 1 [IOT blocker]
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:leo+, b2g18 fixed)
Tracking | Status | |
---|---|---|
b2g18 | --- | fixed |
People
(Reporter: gal, Assigned: daleharvey)
References
Details
(Keywords: feature)
Attachments
(6 files)
+++ This bug was initially created as a clone of Bug #874801 +++ As an operator and as a user I expect the different class of cell Broadcast messages to be handled according to specification. Class 0: to be displayed immediately (even on a locked screen) , user must have option to dismiss, save or delete the message; user must be able to scroll through long messages and user must be notified with an audible alert when the message arrives on the device. Class 1: to be handled the same way as class 1 SMS message - and should be displayed to the user and user must have option to delete or save the message Class 0 and 1 are mandatory for 1.1 IOT and we will handle them here. The original bug handles the other two classes (in case we need to handle them, looks like the modem already does).
Reporter | ||
Updated•11 years ago
|
blocking-b2g: --- → leo+
Summary: [CBS] [User Story] Handle all Cell Broadcast Message Classes → [CBS] [User Story] Handle Broadcast Message Classes 0 and 1 [IOT blocker]
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → dale
Reporter | ||
Updated•11 years ago
|
Assignee | ||
Comment 1•11 years ago
|
||
I am currently working on class 0, there is a conflict between the UX spec and the requirements above,
> user must have option to dismiss, save or delete the message;
If we can save messages then we surely need the ability to view old messages, the current UX spec has a single 'dismiss' button.
If we require the ability to view historical messages I suggest that both class 0 and 1 messages are treated as sms messages, with class 0 having the extra functionality of showing the immediate modal alert.
I am currently working on the modal alert, however how we handle messages to be treated as sms messages I am not sure about, cc'ing some people who work on sms, we most certainly dont have time to write a new api for CBS, transforming them into the sms api in gecko seems nasty, it may be possible to handle chromeevents in system and have system control sms, but that also doesnt sound trivial
Flags: needinfo?(oteo)
Flags: needinfo?(fbsc)
Reporter | ||
Comment 2•11 years ago
|
||
Notifications might be a sufficiently "model" UI here
Reporter | ||
Comment 3•11 years ago
|
||
"model" = "modal"
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
Reporter | ||
Comment 6•11 years ago
|
||
We need some carrier feedback here. Comment 4 links the notifications we get on the lock screen. Comment 5 links the notifications we get when the phone is in use. The notifications in comment 5 auto-hide after a few seconds (we could disable that for CB messages if absolutely needed). Would it pass IOT if we use this mechanism to notify the user? We use notifications and when you click on them it takes you to the SMS app where you can see the full message (in case it was truncated).
Reporter | ||
Comment 8•11 years ago
|
||
We are considering the following approach: - Turn CB messages into class 0 SMS in gecko and the system app. - Have the regular SMS pass handle CB on the lock screen and while the phone is in use (potentially disabling auto-hiding of notification if mandatory). - Delete the special path for Brazil and use the notifications shown above for Brazil and PL. - Delete the CB API in DOM since we will simply handle them as class 0 SMS. Does this make sense?
Assignee | ||
Comment 9•11 years ago
|
||
Some notes about the current implementation just in case I need to be corrected: If we receive a message via the navigator.mozCellBroadcast api, it will only be shown on the lockscreen and only if we are not on emergencycallsonly (and are connected), it will display there until the phone is restarted (or a new cbs message is received) If we receive a class-0 sms message, it will not display a notification, it will attempt to bring the sms app to the foreground and display the message as a modal alert which can be disregarded (and the message is deleted)
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
By 3GPP TS 23.038 chapter 5 "CBS Data Coding Scheme", the only difference between Class 0 and Class 1 is "Class 0 messages shall not be automatically stored in the (U)SIM or ME". That's the only Gecko shall do. CBS is not SMS. We can merge mozCellBroadcast into mozMobileMessage, but we should not turn a CB message into a SMS one. There is a lot differences between two message types. ETWS info/language/messageId/popup/emergencyUserAlert are only available for CBS, and sender/receipients are only available to SMS. Besides, don't forget Cost Control also involves.
Reporter | ||
Comment 12•11 years ago
|
||
Thanks Vicamo. Good points. We will need the separate interface unfortunately. Also, m4, thanks for the screen shot. Looks like we do need a modal dialog after all. We currently have some broken code for that for class 0 SMS. We can fix that code path and do a similar modal dialog for CB. Dale, can you get to work on this tomorrow? We can use the same code we have in the lock screen for the lock screen I guess. Its not pretty, but it probably does the trick.
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #756854 -
Flags: review?(yurenju.mozilla)
Attachment #756854 -
Flags: review?(alive)
Assignee | ||
Comment 15•11 years ago
|
||
Copying the commit message here for comment We do not distinguish between message classes as specified (and previously implemented). If a message is received while in the lockscreen then a notification is sent which wakes the screen, sounds a notification and displays it on the lock screen, clicking on the notification will then show a dialog with a full message. If we are currently using the device the dialog will be displayed immediately. Discussed with Andreas and this looked like the best solution that satisfied the requirements for certification and carried the least risk as any changes to the system app (especially introducing new UI mechanisms) carry a lot of risk, this currently reuses existing and tested features of the system app.
Reporter | ||
Comment 17•11 years ago
|
||
Daniel this changes the Brazil CB path (to the better I think, but I want to make sure you sign off on this).
Flags: needinfo?(dcoloma)
Comment 18•11 years ago
|
||
(In reply to Andreas Gal :gal from comment #17) > Daniel this changes the Brazil CB path (to the better I think, but I want to > make sure you sign off on this). I don't think this satisfies ANATEL requirement. The message in the Idle Screen must be always shown as it indicates to the user the State in which he is currently registered which is essential to understand whether internal-roaming charges apply and the tax to be applied. I am going to look for the documentation and double check, but my initial feedback is that is is not valid for Brazil.
Flags: needinfo?(dcoloma)
Reporter | ||
Comment 19•11 years ago
|
||
This only changes CB messages. Does Brazil use CB to indicate roaming?
Assignee | ||
Comment 20•11 years ago
|
||
I dont think it would be too redundant to reinstate the original display on the lockscreen (its quite inconspicuous) in addition to the notification.
Comment 21•11 years ago
|
||
(In reply to Andreas Gal :gal from comment #19) > This only changes CB messages. Does Brazil use CB to indicate roaming? Yes it does. Brazil operators broadcast that info (all carriers do), on the 2G network, using standard Cell Broadcast on channel 50 (that's configured on the SIM Card). The CB payload (like "VIVO RJ 21") is directly displayed in the homescreen (I will attach Android screenshot).
Comment 22•11 years ago
|
||
Reporter | ||
Comment 23•11 years ago
|
||
Super strange and sorta clever actually. Makes sense. Thanks for the clarification. We can in that case simply keep both paths and enable them for Brazil and PL separately. Dale, can you fix this up? Thanks.
Comment 24•11 years ago
|
||
I don't know where the needinfo myth comes from. Post to .gaia coming up shortly.
Comment 25•11 years ago
|
||
Comment on attachment 756854 [details]
Pointer to GH
Looks like something need to be fixed per request,
though I'm not sure what's needed here.
As I commented in github, the modal dialog layer is not the highest one.
You should inform other modules w/ higher z-index to hide their current overlay to guarantee the user will see the broadcast message.
Attachment #756854 -
Flags: review?(alive)
Reporter | ||
Comment 26•11 years ago
|
||
Dale, Android seems to always treat channel 50 differently, so just route channel 50 always to the lock screen and the rest goes into the new code path.
Assignee | ||
Comment 27•11 years ago
|
||
Sounds good, will get a new patch up asap, cheers alive as well
Comment 28•11 years ago
|
||
Comment on attachment 756854 [details]
Pointer to GH
it made lockscreen more clear, r+ for me
BTW, I tested it with |CellBroadcastSystem.show({message: {body: 'test'}})| on nightly browser, both looks good on locked & unlocked state.
please set review flag to alive again when you updated the pull request.
Attachment #756854 -
Flags: review?(yurenju.mozilla) → review+
Comment 29•11 years ago
|
||
and Dale, I found your implementation removed Cellbroadcast information from connection status bar which implemented on bug 823650. are you sure we need to remove that?
Flags: needinfo?(dale)
Comment 30•11 years ago
|
||
(In reply to Yuren Ju [:yurenju] from comment #29) > and Dale, I found your implementation removed Cellbroadcast information from > connection status bar which implemented on bug 823650. > > are you sure we need to remove that? We must not remove that at least for Brazil, what was added in bug 823650 was for meeting ANATEL certification.
Assignee | ||
Comment 31•11 years ago
|
||
Yup, taking it out was intentional but it was clarified that it needed to be reinstanted
Flags: needinfo?(dale)
Updated•11 years ago
|
Flags: needinfo?(l10n)
Assignee | ||
Comment 32•11 years ago
|
||
Comment on attachment 756854 [details]
Pointer to GH
I restored the previous functionality of displaying channel 50 CB messages on the lockscreen, all other messages go through alerts, I also added a sound notification to the alert (non overridable) and created a new event which hides in progress calls or the utility tray.
Alive this is fairly urgent so if you could look at this asap it would great, I'll make sure to follow up promptly.
Attachment #756854 -
Flags: review?(alive)
Attachment #756854 -
Flags: review+
Attachment #756854 -
Flags: feedback?
Assignee | ||
Updated•11 years ago
|
Attachment #756854 -
Flags: feedback?
Assignee | ||
Comment 33•11 years ago
|
||
Daniel, just checking you are happy with this
Flags: needinfo?(dcoloma)
Comment 34•11 years ago
|
||
Comment on attachment 756854 [details]
Pointer to GH
r=me, please see github comments.
Attachment #756854 -
Flags: review?(alive) → review+
Assignee | ||
Comment 35•11 years ago
|
||
Thanks a lot Alive, agreed on all the comments and have updated the PR, will merge when I hear back from Daniel
Assignee | ||
Comment 36•11 years ago
|
||
What it currently looks like in settings
Assignee | ||
Updated•11 years ago
|
Attachment #756854 -
Flags: review+ → review?(kaze)
Assignee | ||
Comment 37•11 years ago
|
||
I thought settings was a seperate bug but it isnt so amended it into this one This adds a new option inside the 'Call Settings' header with the label 'Cell broadcast service', which can be toggled on or off, by default it is enabled, the settings location and label are very similiar to the android implementation. The setting only applied to the CB alerts, the existing channel 50 lockscreen display will be unaffected by this setting, otherwise the setting simply disabled and enables the display of CB notifications.
Flags: needinfo?(dcoloma)
Comment 38•11 years ago
|
||
Dale, the bug for cell broadcast setting is bug 874796. Let's use the bug 874796 for the setting to avoid any confusion with this bug.
Assignee | ||
Comment 39•11 years ago
|
||
ah sorry missed that bug, will revert and commit this and put the settings only patch in a the other bug
Comment 40•11 years ago
|
||
Dale, I've just being told that CB as required by ANATEL in Brazil is not working in 1.1 (however, it is working in 1.0.1). David has opened bug 879955 to track it.
Assignee | ||
Comment 41•11 years ago
|
||
Comment on attachment 756854 [details]
Pointer to GH
clearing, will be on new bug
Attachment #756854 -
Flags: review?(kaze)
Assignee | ||
Comment 42•11 years ago
|
||
Merged in https://github.com/mozilla-b2g/gaia/commit/7be0dfa9519d94a8f7b8b464f9805dd7a11faeb9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Flags: in-moztrap?
Comment 43•11 years ago
|
||
Uplifted 7be0dfa9519d94a8f7b8b464f9805dd7a11faeb9 to: v1-train: 9d0072b4a34e183b9ea20cd7cbe1457708aa0280
status-b2g18:
--- → fixed
Updated•11 years ago
|
Flags: in-moztrap? → in-moztrap?(jhammink)
Updated•11 years ago
|
Flags: in-moztrap?(jhammink)
You need to log in
before you can comment on or make changes to this bug.
Description
•