Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
This API is available on Firefox OS for internal applications only.
Summary
The DOM MozSmsMessage object represents an SMS text message and has all the information about sender, recipient, body text and date of the message itself.
Properties
-
MozSmsMessage.typeRead only -
A string with the value
sms. -
MozSmsMessage.idRead only - Returns a number representing the id of the message.
-
MozSmsMessage.threadIdRead only -
Returns a number representing the
idof the thread the message is part of. -
MozSmsMessage.bodyRead only -
Returns a
DOMStringwith text of the message. -
MozSmsMessage.deliveryRead only -
Returns a
DOMStringwhich represents the state of the message delivery on the device point of view -
MozSmsMessage.deliveryStatusRead only -
Returns a
DOMStringwhich represents the state of the message delivery on the receiver point of view -
MozSmsMessage.readRead only - Returns a Boolean indicating whether a message is read or unread.
-
MozSmsMessage.receiverRead only -
Returns a
DOMStringwith the name of the receiver. -
MozSmsMessage.senderRead only -
Returns a
DOMStringwith the name of the sender. -
MozSmsMessage.timestampRead only -
Returns a
Dateobject with the timestamp of the message. -
MozSmsMessage.messageClassRead only -
Returns a
DOMStringwhich can either benormal,class-0,class-1,class-2, orclass-3.
Specifications
This is a non standard implementation, but it is discussed at W3C as part of the System Application Working Group.
| Specification | Status | Comment |
|---|---|---|
| Messaging API | Editor's Draft | Editor Draft (WIP). |
Browser compatibility
For obvious reasons, support is primarily expected on mobile browsers.
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | Not supported | Not supported | Not supported | Not supported | Not supported |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | Not supported | 12.0 (12.0) Moz | Not supported | Not supported | Not supported |