Germán Toro del Valle
german.torodelvalle@telefonica.com, gtorodelvalle@gmail.com
Slides: http://bit.ly/fxos-web-platform
{
"name": "My SMS app",
"description": "App to send SMS messages.",
"icons": {
"128": "/icons/SMS-icon.png"
},
"type": "certified",
"permissions": {
"sms": {}
}
}
<input id="number" type="text" placeholder="666666666"> <br/>
<textarea id="text" placeholder="Type your text..."></textarea> <br/>
<button id="send"> Send </button>
document.getElementById('send').addEventListener('click', function() {
navigator.mozMobileMessage.send(
document.getElementById('number').value,
document.getElementById('text').value);
});
Firefox OS everywhere
(devices and countries world-wide)