This API is available on Firefox OS for internal applications only.
Summary
The sendMMS method is used to send an MMS message to one or more receivers.
Syntax
var request = navigator.mozMobileMessage.sendMMS(param);
Parameters
param- A configuration object which is an MmsParameters object
MmsParameters
Those objects are regular JavaScript objects with the following properties:
receivers- An array of strings, with each string representing the phone number of a receiver.
subject- A string representing the subject of the MMS.
smil- A stringified version of the SMIL document defining the MMS.
attachments- An array of Attachment objects used by the SMIL document.
Attachment
Those objects are regular JavaScript objects with the following properties:
id- The unique id of the attachment.
location- A string representing the name/location of the attachment within the SMIL content of the MMS.
content- A
Blobrepresenting the content of the attachment.
Return
A DOMRequest object to handle the success or error of the operation.
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 | No support | No support | No support | No support | No support |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | No support | 12.0 (12.0) Moz | No support | No support | No support |