{
"version": "1",
"name": "Firefox OS Boilerplate App",
"launch_path": "/Firefox-OS-Boilerplate-App/index.html",
"description": "Boilerplate Firefox OS app with example use cases to get started",
"icons": {
"64": "/Firefox-OS-Boilerplate-App/images/logo64.png",
"128": "/Firefox-OS-Boilerplate-App/images/logo128.png"
},
"developer": {
"name": "Robert Nyman",
"url": "http://robertnyman.com"
},
"installs_allowed_from": ["*"],
"default_locale": "en",
"permissions": {
"desktop-notification": {
"description" : "To show notifications"
},
"geolocation": {
"description" : "Marking out user location"
}
}
}
var call = navigator.mozTelephony.dial('555-333-222-666'); call.onconnected = function onConnected(evt) { console.log('Better start to speak now'); };
call.ondisconnected = function onDisconnected(evt) { console.log('Call too long, dude, your bill is getting a bit crazy'); };
call.onerror = function onError(evt) { console.log('This is embarrassing'); };
var sms = navigator.mozMobileMessage.send('555-333-222-666', "Mum I'm OK, I finished all the vegies");
sms.onsucces = function onSuccess(evt) { console.log('Now your mum can go to sleep happy'); };
sms.onerror = function onError(evt) { console.log('Problems ahead'); };
var deviceStorage = navigator.getDeviceStorage('/books'); var request = deviceStorage.get('Gone With The Wind.ebook');
request.onsuccess = function onSuccess(evt) { //request.result is an File object ... }; var request = deviceStorage.delete('horrible_profile_photo.jpg'); request.onerror = function onError(evt) { console.log('Deal with it dude'); }
window.navigator.setMessageHandler('push', function onPushNotification(evt) {
var endpoint = evt.pushEndpoint;
var version = evt.version;
.... do your magic ....
});
$ DEBUG=1 make
$ $FIREFOX_PATH --profile $PATH_TO_THE_PROFILE
$ make reset-gaia