Jonas Sicking
unread,Oct 22, 2013, 3:38:19 PM10/22/13You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gene Lian, Julien Wajsberg, Vicamo Yang, dev-webapi, Chia-Hung Tai, Bevis Tseng, EDUARDO FULLEA CARRERA, Shao-Hang Kao, Steve Chung
On Tue, Oct 22, 2013 at 7:32 AM, Gene Lian <
cl...@mozilla.com> wrote:
> Update the proposed APIs to summarise what we're going to make to support MMS Read Report eventually.
>
> -----
> 1. As a receiver, we want to return the read port to the sender per MMS basis.
>
> To do so, Gaia needs a way to know whether to pop up a prompt to request for the read report:
>
> partial interface nsIDOMMozMmsMessage
> {
> ...
> readonly attribute boolean isReadReportRequested;
> ...
> };
>
> Later, the receiver can decide whether to send the read report back to the sender by:
>
> partial interface nsIDOMMozMobileMessageManager
> {
> ...
> DOMRequest markMessageRead(in long id, in boolean value,
> [optional] in boolean sendReadReport);
> };
>
> When |value| == TRUE && |sendReadReport| == TRUE, the back-end will send the read port back to the sender in addition to marking the message to be read in the DB. If |sendReadReport| is not indicated, use the general setting instead.
>
> Bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=921919
Sounds good to me. I suspect that the SMS app will want to know what
the "general setting" is, so it might be a good idea to expose that
through the MMS API somewhere. However maybe it's enough to expose it
through settings?
> 2. As a sender, we want to specify and notify if an MMS has been read by a certain receiver:
>
> partial interface nsIDOMMozMmsMessage
> {
> ...
> readonly attribute jsval receivers; // DOMString[]
> ...
> readonly attribute jsval deliveryInfo; // MmsDeliveryInfo[]
> ...
> };
>
> dictionary MmsDeliveryInfo
> {
> DOMString receiver;
> readonly attribute DOMString deliveryStatus;
> readonly attribute DOMString readStatus;
> };
>
> Also, add 2 event handlers to notify the sender about the read report event:
>
> partial interface nsIDOMMozMobileMessageManager
> {
> ...
> attribute jsval ondeliverysuccess;
> attribute jsval ondeliveryerror;
> attribute jsval onreadsuccess;
> attribute jsval onreaderror;
> };
>
> Bug #1:
https://bugzilla.mozilla.org/show_bug.cgi?id=928821
> Bug #2:
https://bugzilla.mozilla.org/show_bug.cgi?id=921918
When would "readerror" fire? I thought that either we'd get a
successful read report, in which case we would fire readsuccess, or we
wouldn't get anything?
> -----
> 3. As a sender, we want to request for the delivery/read reports per MMS basis when sending it:
>
> partial interface nsIDOMMozMobileMessageManager
> {
> ...
> DOMRequest sendMMS(in jsval parameters, /* MmsParameters */
> in jsval sendParameters /* MmsSendParameters */);
> };
>
> dictionary MmsSendParameters
> {
> boolean requestDeliveryReport;
> boolean requestReadReport;
> };
>
> If |requestDeliveryReport| or |requestReadReport| is not indicated, use the general setting instead.
>
> Bug #1:
https://bugzilla.mozilla.org/show_bug.cgi?id=927716
> Bug #2:
https://bugzilla.mozilla.org/show_bug.cgi?id=927718
Just add these two to the MmsParameters instead. And same comment as
above that it might be good to expose what the defaults are, but that
maybe settings API covers that.
/ Jonas