SMS/MMS

Allowing Web applications to access SMS and MMS messages on the device was a goal of Messaging API. It was designed to cover the functionality of the native mobile messaging applications, including browsing, creating and managing the messages. Its early version was implemented only on now-defunct Firefox OS. As of late 2017 it was the only actual implementation of SMS messaging in the Web - no browser vendor expresses an interest anymore.

There exists another SMS-related API proposal to focus on SMS as a carrier of one-time password to be used in multiple factor authentication schemes. As of end of 2017 this proposal is still in early design phase.

API glimpse

Firefox OS API

navigator.mozSms.send(number, message)
Sends a SMS to a specified number. The sending and delivery status was to be tracked via listening to onsent, ondeliverysuccess and ondeliveryerror events.
navigator.mozSms.getMessages(filter)
Returns the cursor that allows iterating through the messages matching the filter provided.

Messaging API proposal

navigator.messaging.sms.send(number, message, serviceId)
Sends a SMS to a specified number. The sending and delivery status was to be tracked via listening to onsent, ondeliverysuccess and ondeliveryerror events.
navigator.messaging.mms.send(content)
Sends a MMS to a specified number. The sending and delivery status was to be tracked via listening to onsent, ondeliverysuccess and ondeliveryerror events.
navigator.messaging.findMessages(filter, options)
Returns the Promise resolved with the messages matching by the filter provided.

Resources