The Messaging API provides operations to get access to the primitives offered by mobile messaging services (send, receive) as well as those that allow to manage a mobile messaging client inbox (delete, store, mark as read)
An example of use is provided below:
navigator.messaging.sms.send ( '+1234567890', 'How are you?').then( function(message) { window.console.log('Message with identifier ' + message.messageID + ' sent at ' + message.timestamp); }, function(error) { window.console.error('Error: ' + error); } )
This specification defines conformance criteria that apply to a single product: the user agent that implements the interfaces that it contains.
Implementations that use ECMAScript to implement the APIs defined in this specification MUST implement them in a manner consistent with the ECMAScript Bindings defined in the Web IDL specification [[!WEBIDL]], as this specification uses that specification and terminology.
The
EventHandler
interface represents a callback used for event
handlers as defined in [[!HTML5]].
The concepts queue a task and fire an event are defined in [[!HTML5]].
The terms event handler and event handler event types are defined in [[!HTML5]].
The Promise interface, the concepts of a resolver, a resolver's fulfill algorithm and a resolver's reject algorithm are defined in [[DOM4]].
This API must be only exposed to trusted content
The MessagingManager interface represents the initial entry point for getting access to the mobile messaging services, i.e. SMS and MMS.
filter
parameter and according to the filtering options
described in the options
. It returns a new
Promise
that will be used to notify the caller about
the result of the operation, which is a MessagingCursor to access the set of
messages.
groupBy
parameter.
Only those messages matching the filter described in the filter
parameter SHALL be included in the resulting conversations, what can be
useful for instance to filter just a specific type of messages (e.g. SMS) or
to implement message search in a conversational messaging client. It returns
a new Promise
that will be used to notify the caller
about the result of the operation, which is a MessagingCursor to access the
set of conversations.
messageID
parameter.
It returns a new Promise
object which allows the
caller to be notified about the result of the operation.
messageID
parameter. A new Promise
is returned in order to
notify the request result (success or error) to the caller.
conversationID
parameter. A new Promise
is
returned in order to notify the request result (success or error) to the
caller.
messageID
parameter. The method returns a new
Promise
that will allow the caller to be notified
about the result (success, error) of the operation.
conversationID
parameter. The method returns a new
Promise
that will allow the caller to be notified about the
result (success, error) of the operation.
The findMessages
method when invoked MUST run the following steps:
Promise
object and
resolver its associated resolver
filter
parameter and according to the
filtering options described in the options
parameter.
value
argument.
MessagingCursor
object providing access to the results of the retrieval, i.e. the set of
SmsMessage
and/or MmsMessage
elements.
value
argument.
The findConversations
method when invoked MUST
run the following steps:
Promise
object and
resolver its associated resolver
groupBy
parameter, and filtering
the messages included in those conversations according to the filter
included in the filter
parameter and the filtering options
described in the options
parameter.
value
argument.
MessagingCursor
object providing access to the results of the retrieval, i.e. the set of
Conversation
elements.
value
argument.
The getMessage
method when invoked MUST run
the following steps:
Promise
object and
resolver its associated resolver
messageID
parameter passed in the request.
value
argument.
SmsMessage
or
MmsMessage
whose identifier matches the
messageID
parameter.
value
argument.
The deleteMessage
method when invoked MUST run the
following steps:
Promise
object and
resolver its associated resolver
messageID
parameter passed in the request.
value
argument.
messageID
parameter
passed in the request
value
argument.
The deleteConversation
method when invoked MUST
run the following steps:
Promise
object and
resolver its associated resolver
conversationID
parameter passed
in the request.
value
argument.
conversationID
parameter passed in the request
value
argument.
The markMessageRead
method when invoked MUST run
the following steps:
Promise
object and
resolver its associated resolver
value
parameter being respectively 'true' or 'false') the
message with identifier equal to the messageID
parameter
passed in the request, and to send a Read Report if
sendReadReport
is set to 'true'.
value
argument.
messageID
parameter
passed in the request
value
argument.
The markConversationRead
method when invoked
MUST run the following steps:
Promise
object and
resolver its associated resolver
value
parameter being respectively 'true' or 'false') the
messages in the conversation with identifier equal to the
conversationID
parameter passed in the request, and in case
sendReadReport
is set to 'true', to send a Read Report for
each of the MMS messages for which it was requested.
value
argument.
conversationID
parameter passed in the request
value
argument.
The SmsManager interface represents the SMS messaging service manager.
text
parameter, the number of characters available per segment and the maximum
number of available characters in the last segment.
A Promise
object will be returned in order to notify
the result of the request.
text
parameter to the destination
number indicated in the to
parameter.
A Promise
object will be returned in order to notify
the result of the request.
received
event of type MessagingEvent,
fired when a new message is received on this messaging service manager.sent
event of type MessagingEvent, fired
when a new message is sent using this messaging service manager.deliverysuccess
event of type
DeliveryReportEvent, fired when a new succesful delivery
report is received on this messaging service manager.deliveryerror
event of type
DeliveryReportEvent, fired when a new failure delivery
report is received on this messaging service manager.serviceadded
event of type
ServiceChangeEvent, fired whenever a new messaging service is enabled
on this messaging service manager.serviceremoved
event of type
ServiceChangeEvent, fired when an existing messaging service is
disabled on this messaging service manager. The send
method when invoked MUST run the following steps:
Promise
object and
resolver its associated resolver
SmsMessage
:
messageID
of smsMessage to the
generated identifier.
type
of smsMessage to 'sms'.
serviceID
of smsMessage to the
identifier of the service used to send the message, i.e. the one passed in
the serviceID
parameter, if provided, or otherwise to the
first item in the serviceIDs
attribute of the
SmsManager
.
from
of smsMessage to the number of the
mobile subscription used to send this SMS message.
read
of smsMessage to 'true'.
to
of smsMessage to the value of the
to
parameter.
body
of smsMessage to the value of the
text
parameter.
messageClass
of smsMessage to 'class1'.
state
of smsMessage to 'sending'.
deliveryStatus
of smsMessage to
'pending' if a delivery report has been requested or to 'not-applicable'
otherwise.
text
parameter to the number of the recipient
indicated in the to
parameter, using the proper service as
described above.
deliveryStatus
of smsMessage to 'error'.
value
argument.
state
of smsMessage to 'sent'.
timestamp
of smsMessage to the
device's date when the SMS message was sent, i.e. when the SMS-SUBMIT
Protocol Data Unit was sent.
value
argument.
sent
with
the message
attribute set to smsMessage.
The segmentInfo
method when invoked MUST run the
following steps:
Promise
object and
resolver its associated resolver
SmsSegmentInfo
.
text
parameter, using the service with identifier equal to the one passed in the
serviceID
parameter, if provided, or otherwise to the first
item in the serviceIDs
attribute of the
SmsManager
.
value
argument.
segments
of smsSegmentInfo to the
number of concatenated SMS segments needed to send the provided text.
charsPerSegment
of smsSegmentInfo to
the number of characters available per SMS segment. This number depends
on the encoding to be used to send the SMS message, which in turn
depends on the language / special characters included in the text.
charsAvailableInLastSegment
of
smsSegmentInfo to the maximum number of available characters in
the last segment that would be needed to send the input string. This
provides useful information to the user on the number of characters that
can type without requiring an additional SMS segment to send the text.
value
argument.
Note that the application that has invoked the segmentInfo
method SHOULD NOT split the text in a set of strings that fit each into a
single SMS segment and send each of them by an independent call to the
sendSMS
method as it would result in different independent SMS
messages being sent, but SHOULD instead send the full message in a single
sendSMS
request. However having information on the number of SMS
segments may be required by the application in order to inform the user (e.g.
in case the length of the text impacts on the price charged for sending the
message).
Upon a new SMS message being received, the user agent MUST:
SmsMessage
.
messageID
of smsMessage to the
generated identifier.
type
of smsMessage to 'sms'.
serviceID
of smsMessage to the
identifier of the service at which the message has been received.
from
of smsMessage to the
sender of the SMS message, i.e. the value of the TP Originating Address
(TP-OA) field of the SMS message [[!GSM-SMS]].
timestamp
of smsMessage to the
timestamp of the SMS message, i.e. the value of the
TP-Service-Centre-Time-Stamp (TP-SCTS) parameter received in the SMS
DELIVER Protocol Data Unit [[!GSM-SMS]].
read
of smsMessage to 'false'.
to
of smsMessage to the recipient of the
SMS message, i.e. the value of the TP Destination Address (TP-DA) field of
the SMS message [[!GSM-SMS]].
messageClass
of smsMessage to the
message class indicated in the TP-Data-Coding-Scheme (TP-DCS) field of the
SMS message [[!GSM-SMS]].
body
element to the text of the received SMS
message, i.e. the value of the SM element contained within the TP User
Data (TP-UD) field of the SMS message [[!GSM-SMS]].
state
of smsMessage to
'received'.
deliveryStatus
of smsMessage to
'not-applicable'.
received
with the message
attribute set to smsMessage.
received
of type ReceivedMessage
with the
message
attribute set to smsMessage.
Upon a delivery report of a previously sent SMS message being received, the user agent MUST
SmsMessage
to which this delivery report is related.
deliveryStatus
parameter of smsMessage
to 'success' or 'error' depending on the reported
result.
deliveryTimestamp
of smsMessage
to the delivery time of the SMS message, i.e. the TP-Discharge-Time (TP
DT) parameter included in the SMS-STATUS-REPORT Protocol Data Unit
[[!GSM-SMS]].
messageID
attribute set to the
messageID
attribute of smsMessage,
serviceID
attribute set to the
serviceID
attribute of smsMessage,
recipients
attribute set to the
to
attribute of smsMessage, and
deliveryTimestamps
attribute set
to delivery time of such message.
DeliveryReport
named deliverysuccess
or
deliveryerror respectively if the delivery was successfull or
not, with
messageID
attribute set to the
messageID
attribute of smsMessage,
serviceID
attribute set to the
serviceID
attribute of smsMessage, and
recipients
attribute set to the
to
attribute of smsMessage.
deliveryTimestamps
attribute set
to delivery time of such message.
The clear
method when invoked MUST run the following steps:
Promise
object and
resolver its associated resolver
serviceID
parameter.
value
argument.
serviceID
parameter
passed in the request
value
argument.
The following are the event handlers (and their corresponding event types) that MUST be supported as attributes by the SmsManager object.
event handler | event name | event type | short description |
---|---|---|---|
onreceived |
received |
MessagingEvent |
handles received messages |
onsent |
sent |
MessagingEvent |
handles sent messages |
ondeliverysuccess |
deliverysuccess |
DeliveryReportEvent |
handles successful delivery reports |
ondeliveryerror |
deliveryerror |
DeliveryReportEvent |
handles failure delivery reports |
onserviceadded |
serviceadded |
ServiceChangeEvent |
handle new messaging services |
onserviceremoved |
serviceremoved |
ServiceChangeEvent |
handle disabled messaging services |
The SmsSegmentInfo dictionary contains information about the segmentation of a given text to be sent as SMS.
The MmsManager interface represents the MMS messaging service manager.
serviceID
parameter, if
provided, or the first item in the serviceIDs
attribute of
the MmsManager
otherwise).
serviceID
parameter, if provided, or for all services otherwise, to the mode indicated
in the fetchMode
parameter.
mmsContent
parameter.
A Promise
object will be returned in order to notify the result
of the request.
messageID
parameter from the URL indicated
in the MMS notification. The method returns a new Promise
that
will allow the caller to be notified about the result (success, error) of
the
operation.
received
event of type MessagingEvent,
fired when a new message is received on this messaging service manager.sent
event of type MessagingEvent, fired
when a new message is sent using this messaging service manager.deliverysuccess
event of type
DeliveryReportEvent, fired when a new succesful delivery
report is received on this messaging service manager.deliveryerror
event of type
DeliveryReportEvent, fired when a new failure delivery
report is received on this messaging service manager.readsuccess
event of type
ReadReportEvent, fired when a new succesful read report is
received on this messaging service manager.readerror
event of type
ReadReportEvent, fired when a new failure read report is received
on this messaging service manager.serviceadded
event of type
ServiceChangeEvent, fired whenever a new messaging service is enabled
on this messaging service manager.serviceremoved
event of type
ServiceChangeEvent, fired when an existing messaging service is
disabled on this messaging service manager. The send
method when invoked MUST run the following steps:
Promise
object and
resolver its associated resolver
MmsMessage
and:
messageID
of mmsMessage to the
generated identifier.
type
of mmsMessage to 'mms'.
serviceID
of mmsMessage to the
identifier of the service used to send the message, i.e. the one passed in
the serviceID
parameter in MmsSendParameters
, if
provided, or otherwise to the first item in the serviceIDs
attribute of the MmsManager
.
from
of mmsMessage to the number of the
mobile subscription used to send this MMS message.
read
of mmsMessage to 'true'.
to
of mmsMessage to the to
in the mmsContent
parameter.
cc
of mmsMessage to the cc
array in the mmsContent
parameter.
bcc
of mmsMessage to the
bcc
array in the mmsContent
parameter.
subject
of mmsMessage to the value of
the the subject
parameter in mmsContent
.
smil
of mmsMessage to the value of the
the smil
parameter in mmsContent
.
attachments
of mmsMessage to the value
of the the attachments
array in mmsContent
parameter.
state
of mmsMessage to 'sending'.
deliveryInfo
attribute of
mmsMessage for each unique recipient included in the
to
, cc
and bcc
parameters (i.e. a
single item if the same address has multiple ocurrences across these
parameters), with the recipient
attribute set to this
recipient's address, with the deliveryStatus
attribute set to
'pending', if a delivery report has been requested, or 'not-applicable'
otherwise and with the readStatus
attribute set to 'pending',
if a read report has been requested, or 'not-applicable' otherwise.
content
parameter to the number(s) of indicated
in the to
parameter, using the proper service as described
above and asking for delivery and/or read report if requested.
deliveryStatus
attribute of the different items in the
deliveryInfo
array attribute of mmsMessage to
'error'.
value
argument.
state
of mmsMessage to 'sent'.
timestamp
of mmsMessage to the
device's date when the MMS message was sent, i.e. the date when the
M-Send.req Protocol Data Unit was sent by the MMS Client.
value
argument.
sent
with
the message
attribute set to mmsMessage.
The reception of an MMS message is a two-step process: Firstly, an MMS notification encapsulated in a WAP Push OTA message [[OMA-PUSH]] is received by the device. This MMS notification contains limited information about the MMS message and a URL where the device can retrieve the full MMS message from. Secondly, the MMS message is retrieved either automatically, i.e. performed right after the reception of the MMS notification, or manually, i.e. invoked manually by the user.
Upon a new MMS notification being received, the user agent MUST:
MmsMessage
.
messageID
of mmsMessage to the
generated identifier.
type
of mmsMessage to 'mms'.
serviceID
of mmsMessage to the
identifier of the service at which the message has been received.
read
of mmsMessage to 'false'.
from
of mmsMessage to the
value of the 'From' field of the MMS notification, if present.
timestamp
of mmsMessage to
the timestamp of the binary SMS message used to transport the MMS
notification, i.e. the value of the TP-Service-Centre-Time-Stamp
(TP-SCTS) parameter received in the SMS-DELIVER Protocol Data Unit
[[!GSM-SMS]].
expiry
of mmsMessage to the value of
the 'X-Mms-Expiry' field of the MMS notification.
to
array of mmsMessage
for each of recipients in the 'To' field of the MMS notification
[[!MMS13]], if present.
cc
array of mmsMessage
for each of recipients in the 'Cc' field of the MMS notification
[[!MMS13]], if present.
bcc
array of
mmsMessage for each of recipients in the 'Bcc' field of the
MMS notification [[!MMS13]], if present.
subject
attribute to the value of the 'Subject'
field of the MMS notification [[!MMS13]], if present.
state
of mmsMessage to
'not-downloaded'.
MmsMessage
object with the data contained in the MMS
message enclosed in the M-Retrieve.conf Protocol Data Unit.
from
of mmsMessage to the
value of the 'From' field of the MMS message [[!MMS13]].
timestamp
of mmsMessage to
the value of the 'Date' field of the MMS message [[!MMS13]].
to
array of
mmsMessage for each of recipients in the 'To' field of
the MMS message [[!MMS13]], if present.
cc
array of
mmsMessage for each of recipients in the 'Cc' field of
the MMS message [[!MMS13]], if present.
bcc
array of
mmsMessage for each of recipients in the 'Bcc' field of
the MMS message [[!MMS13]], if present.
subject
attribute to the value of the 'Subject'
field of the MMS message [[!MMS13]], if present.
smil
attribute to a DOMString
containing the SMIL object of the received MMS message [[!MMS13]],
if present.
attachments
array with:
Blob
object including the actual content
of the attachment and the media type. The charset encoding
is indicated as part of the type
attribute of the
Blob
object by means of appending a
charset
parameter after the media type as
explained in [[!RFC2046]], e.g. "text/plain; charset=utf-8".
contentID
attribute filled with the Content-ID used
to reference this attachment from the SMIL object in the incoming MMS
message [[!MMS13]], if present.
contentLocation
attribute filled with the
Content-Location used to reference this attachment from the SMIL object in
the incoming MMS message [[!MMS13]], if present.
readReportRequested
attribute to 'true'
if the 'X-Mms-Read-Report' field is present in the incoming MMS
message [[!MMS13]] and has the value 'Yes', and to 'false'
otherwise.
state
of mmsMessage to
'received'.
deliveryInfo
array attribute of
mmsMessage for each unique recipient included in the
'To', 'Cc' and 'Bcc' fields (i.e. a single item if the same address
has multiple ocurrences across these parameters), with the
recipient
attribute set to this recipient's address and
the deliveryStatus
attribute set to 'not-applicable'.
received
with the message
attribute set
to mmsMessage.
received
of type ReceivedMessage
with the
message
attribute set to mmsMessage.
The fetch
method can be invoked to fetch an MMS
message that has not been automatically fetched upon receiving the
corresponding MMS notification, e.g. due to the fetch mode being manual. When this
method is invoked the User Agent MUST run the following steps:
Promise
object and
resolver its associated resolver
messageID
parameter passed in the request matches
with an MMS message that has already been fetched, or to an SMS message go
to next step, otherwise let mmsMessage the message with
messageID
attribute equal to the messageID
parameter and set the state
of mmsMessage to
'fetching' and make a request to the system to fetch the MMS message.
value
argument.
value
argument.
An example of manual fetch of an MMS is provided below:
navigator.setMessageHandler ('received', onMessageReceived) function onMessageReceived(message) { if (message.type == 'sms') { window.console.log('SMS Message from ' + message.from + ' received'); } else if (message.type == 'mms') { window.console.log('MMS Message from ' + message.from + ' received'); if (message.state == 'not-downloaded') { window.console.log('MMS Message download started'); navigator.messaging.mms.fetch (message.id).done( function(message) { window.console.log('MMS Message downloaded!');}, function(error) { window.console.error('Error: ' + error);} ); } } }
Upon a delivery report of a previously sent MMS message being received, the user agent MUST
MmsMessage
to which this delivery report is related.
deliveryInfo
array
attribute of mmsMessage whose recipient
attribute matches one of the recipients of the MMS to which the delivery
report is related,
deliveryStatus
attribute:
deliveryTimestamp
attribute to the delivery
time, i.e. the 'Date' field in the M-Delivery.ind Protocol Data Unit
[[!MMS13]], in case of successful delivery.
messageID
attribute set to the
messageID
attribute of mmsMessage,
serviceID
attribute set to the
serviceID
attribute of mmsMessage,
recipients
attribute set to the subset of the
original recipients of mmsMessageto which this delivery
report is related, and
deliveryTimestamps
attribute set to the delivery time of
the MMS message to the corresponding recipient, i.e. that in the
same position of the recipients
array.
DeliveryReport
named deliverysuccess
or
deliveryerror
respectively if the delivery was successfull or
not, with
messageID
attribute set to the
messageID
attribute of mmsMessage,
serviceID
attribute set to the
serviceID
attribute of mmsMessage,
recipients
attribute set to the subset of the
original recipients of mmsMessageto which this delivery
report is related, and
deliveryTimestamps
attribute set to the delivery time of
the MMS message to the corresponding recipient, i.e. that in the
same position of the recipients
array.
Upon a read report of a previously sent MMS message being received, the user agent MUST
MmsMessage
to which this read report is related.
deliveryInfo
array
attribute of mmsMessage whose recipient
attribute matches one of the recipients of the MMS to which the read
report is related,
readStatus
attribute:
readTimestamp
attribute to the read
time, i.e. the 'Date' field in the M-Read-Orig.ind Protocol Data Unit
[[!MMS13]], in case the message has been read.
messageID
attribute set to the
messageID
attribute of mmsMessage,
serviceID
attribute set to the
serviceID
attribute of mmsMessage,
recipients
attribute set to the subset of the
original recipients of mmsMessageto which this read
report is related, and
readTimestamps
attribute set to the read time of
the MMS message by the corresponding recipient, i.e. that in the
same position of the recipients
array.
ReadReport
named readsuccess
or
readerror
respectively if the message has been read or not, with
messageID
attribute set to the
messageID
attribute of mmsMessage,
serviceID
attribute set to the
serviceID
attribute of mmsMessage,
recipients
attribute set to the subset of the
original recipients of mmsMessageto which this read
report is related, and
readTimestamps
attribute set to the read time of
the MMS message by the corresponding recipient, i.e. that in the
same position of the recipients
array.
The clear
method when invoked MUST run the following steps:
serviceID
parameter.
Promise
object and
resolver its associated resolver
value
argument.
serviceID
parameter
passed in the request
value
argument.
The following are the event handlers (and their corresponding event types) that MUST be supported as attributes by the MmsManager object.
event handler | event name | event type | short description |
---|---|---|---|
onreceived |
received |
MessagingEvent |
handles received messages |
onsent |
sent |
MessagingEvent |
handles sent messages |
ondeliverysuccess |
deliverysuccess |
DeliveryReportEvent |
handles successful delivery reports |
ondeliveryerror |
deliveryerror |
DeliveryReportEvent |
handles failure delivery reports |
onreadsuccess |
readsuccess |
ReadReportEvent |
handles successful read reports |
onreaderror |
readerror |
ReadReportEvent |
handles failure read reports |
onserviceadded |
serviceadded |
ServiceChangeEvent |
handle new messaging services |
onserviceremoved |
serviceremoved |
ServiceChangeEvent |
handle disabled messaging services |
The SmsMessage interface represents an SMS message as defined in [[!GSM-SMS]]. This interface is not intended to represent binary SMS, which are out of the scope of this API.
The MmsMessage interface represents an MMS message, as defined in [[!MMS13]].
to
,
cc
or bcc
attributes.to
,
cc
or bcc
attributes.to
,
cc
or bcc
attributes.The Conversation interface represents a set of messages that are grouped together either because they are exchanged among the same set of participants or because they have the same subject.
MessageCursor
to access the messages in
this conversation.The MessagingCursor interface allows to iterate through a list of
Conversation
elements or of messages (SmsMessage
and/or MmsMessage
elements).
A MessagingCursor always has, an associated request which is the Promise that created it.
As soon as the MessagingCursor is accessing an element,
it MUST put its associated request in the 'processing'
readyState
, and set the result
to null. Then, the UA
MUST fetch the next/previous element asynchronously. When the element is
retrieved, the associated request's readyState
must be set
to 'done' and the result
must point to the cursor. If no element
was found, the cursor's element
property must return null.
"InvalidStateError"
error as defined in [[!DOM4]].
"InvalidStateError"
error as defined in [[!DOM4]].
The ReceivedMessage interface represents a system message related to a received message. This event is originated from the system and will start the application if it is not currently running.
The application that consumes this API SHOULD set a message handler for the
ReceivedMessage
system message to listen for when a system
message related to a received message is fired.
SmsMessage
or MmsMessage
object to which this system message is related.The DeliveryReport interface represents a system message related to a delivery report of a sent message. This event is originated from the system and will start the application if it is not currently running.
The application that consumes this API MAY set a message handler for the
DeliveryReport
system message to listen for when a system
message related to a received delivery report is fired.
recipients
array. It MUST return null if case of delivery
failure (e.g. message expired)
The ReadReport interface represents a system message related to a read report of a sent MMS message. This event is originated from the system and will start the application if it is not currently running.
The application that consumes this API MAY set a message handler for the
ReadReport
system message to listen for when a system
message related to a received read report is fired.
recipients
array.
The MessagingEvent interface represents events related to a message sent or received.
SmsMessage
or MmsMessage
object to which this event is related.The DeliveryReportEvent interface represents events related to a delivery report of a sent message.
recipients
array. It MUST return null if case of delivery
failure (e.g. message expired)
The ReadReportEvent interface represents events related to a read report of a sent message.
recipients
array.
The ServiceChangeEvent interface represents events related to messaging services enabled or disabled.
The MessagingFilter Dictionary represents a filter that is used to
select a set of messages (e.g. to be provided upon invoking the
findMessages
or the findConversations
method in the
Messaging
interface).
The attibute type
can have the following values:
The attibute messageClass
in an SmsMessage
can have
the following values:
The attibute state
in an SmsMessage
can have
the following values:
The attibute state
in an MmsMessage
can have
the following values:
The attibute deliveryStatus
can have the following values:
The attibute readStatus
can have the following values:
The MMS fetch mode can have the following values:
The editors would like to express their gratitude to the Mozilla B2G Team and specially to Jonas Sicking, Mounir Lamouri and Vicamo Yang for their technical guidance, implementation work and support.