This document discusses Firefox OS and web development for mobile devices. It highlights that the web is becoming the dominant mobile platform, and Firefox OS allows developers to build apps using HTML5, CSS3 and JavaScript. It describes the Gecko, Gaia and Gonk layers that make up Firefox OS and provides examples of various web APIs available to Firefox OS apps, including battery status, notifications, screen orientation, vibration and more. It also discusses app security, packaging and installation on Firefox OS devices.
The document discusses Firefox OS, an open source mobile operating system developed by Mozilla. It provides an overview of key aspects of Firefox OS including its use of open web technologies like HTML5, its architecture consisting of layers like Gonk and Gecko, and the various web APIs available to developers to access device capabilities. It also covers topics like app security, packaging vs hosting apps, and tools for developing and testing Firefox OS apps.
The document discusses Firefox OS and its open web platform. It describes the key layers and components of Firefox OS including Gonk (infrastructure), Gecko (web engine), and Gaia (applications). It provides an overview of various web APIs available to Firefox OS applications for accessing device capabilities like notifications, vibration, battery status, and contacts. It also covers app development topics such as permissions, packaging versus hosting apps, and installing apps.
Screencast on YouTube: https://www.youtube.com/watch?v=GJ_5JKG4nFI
Firefox OS is a new operating system aimed at emerging markets to replace feature phones with HTML5 based Smartphones whilst still being affordable. In this talk you'll see its architecture, how to take part in it and what it means to the evolution of HTML5 as a platform. A lot of promises have been made, here you can see HTML5 working without having to jump through hoops and abstractions.
O documento descreve o Firefox OS, um sistema operacional móvel baseado na Web que permite que aplicativos sejam desenvolvidos usando HTML5, CSS e JavaScript. Ele visa levar a Web aberta para dispositivos móveis e liberar os desenvolvedores e usuários das restrições das plataformas proprietárias existentes.
O documento apresenta o Firefox OS, um novo sistema operacional móvel desenvolvido pela Mozilla. O Firefox OS é baseado em tecnologias web abertas como HTML5, CSS e JavaScript e tem como objetivo levar a web para dispositivos móveis de forma rápida e com estilo semelhante ao desktop. A Mozilla convida as pessoas a se tornarem mobilizers e ajudarem na divulgação do Firefox OS no Brasil.
This document discusses Firefox OS and open web apps. It provides an overview of Firefox OS as a mobile platform based on open web technologies. It describes how apps are built using HTML, CSS and JavaScript instead of native languages. It outlines several web APIs available to Firefox OS apps for accessing device capabilities like vibration, notifications, sensors and storage. It also discusses app security and privileges as well as features for packaging and installing apps. The document provides resources for developing Firefox OS apps including links to documentation, tools, components and forums for getting help.
Bringing the Open Web & APIs to mobile devices with Firefox OS - GOTO confer...Robert Nyman
This document discusses Firefox OS and its use of open web technologies like HTML5, CSS and JavaScript to build mobile apps. It describes how Firefox OS uses a manifest file and web APIs to access device capabilities. The document outlines the security levels for web content and apps as well as both regular and privileged web APIs for features like notifications, vibration and payment. It also discusses future plans for additional Firefox OS APIs.
The document discusses Firefox OS, an open source mobile operating system developed by Mozilla. It provides an overview of key aspects of Firefox OS including its use of open web technologies like HTML5, its architecture consisting of layers like Gonk and Gecko, and the various web APIs available to developers to access device capabilities. It also covers topics like app security, packaging vs hosting apps, and tools for developing and testing Firefox OS apps.
The document discusses Firefox OS and its open web platform. It describes the key layers and components of Firefox OS including Gonk (infrastructure), Gecko (web engine), and Gaia (applications). It provides an overview of various web APIs available to Firefox OS applications for accessing device capabilities like notifications, vibration, battery status, and contacts. It also covers app development topics such as permissions, packaging versus hosting apps, and installing apps.
Screencast on YouTube: https://www.youtube.com/watch?v=GJ_5JKG4nFI
Firefox OS is a new operating system aimed at emerging markets to replace feature phones with HTML5 based Smartphones whilst still being affordable. In this talk you'll see its architecture, how to take part in it and what it means to the evolution of HTML5 as a platform. A lot of promises have been made, here you can see HTML5 working without having to jump through hoops and abstractions.
O documento descreve o Firefox OS, um sistema operacional móvel baseado na Web que permite que aplicativos sejam desenvolvidos usando HTML5, CSS e JavaScript. Ele visa levar a Web aberta para dispositivos móveis e liberar os desenvolvedores e usuários das restrições das plataformas proprietárias existentes.
O documento apresenta o Firefox OS, um novo sistema operacional móvel desenvolvido pela Mozilla. O Firefox OS é baseado em tecnologias web abertas como HTML5, CSS e JavaScript e tem como objetivo levar a web para dispositivos móveis de forma rápida e com estilo semelhante ao desktop. A Mozilla convida as pessoas a se tornarem mobilizers e ajudarem na divulgação do Firefox OS no Brasil.
This document discusses Firefox OS and open web apps. It provides an overview of Firefox OS as a mobile platform based on open web technologies. It describes how apps are built using HTML, CSS and JavaScript instead of native languages. It outlines several web APIs available to Firefox OS apps for accessing device capabilities like vibration, notifications, sensors and storage. It also discusses app security and privileges as well as features for packaging and installing apps. The document provides resources for developing Firefox OS apps including links to documentation, tools, components and forums for getting help.
Bringing the Open Web & APIs to mobile devices with Firefox OS - GOTO confer...Robert Nyman
This document discusses Firefox OS and its use of open web technologies like HTML5, CSS and JavaScript to build mobile apps. It describes how Firefox OS uses a manifest file and web APIs to access device capabilities. The document outlines the security levels for web content and apps as well as both regular and privileged web APIs for features like notifications, vibration and payment. It also discusses future plans for additional Firefox OS APIs.
Bringing the Open Web & APIs to mobile devices with Firefox OS, JSFoo, IndiaRobert Nyman
Firefox OS uses open web technologies like HTML5, CSS and JavaScript to build apps that run on mobile devices. It includes various web APIs that allow access to device capabilities while maintaining a multi-level security model. The document provides examples of APIs for accessing features like battery status, vibration, screen orientation and more. It also outlines how packaged apps can integrate with device functions through web activities and privileged APIs.
Bringing the Open Web & APIs to mobile devices with Firefox OS - BrazilJSRobert Nyman
Firefox OS is an open source mobile operating system developed by Mozilla that uses HTML5 technologies and APIs to allow developers to build apps and customize the user interface. It aims to bring the open web to mobile by allowing apps to be built with web technologies like HTML, CSS, and JavaScript instead of native development. The document outlines the key technologies that Firefox OS uses like HTML5, manifest files, and various device APIs for features like vibration, screen orientation, geolocation, and more. It also describes the different types of apps and security levels as well as Mozilla's vision for future web standards and APIs.
Bringing the Open Web & APIs to mobile devices with Firefox OS - SpainJSRobert Nyman
Firefox OS uses open web technologies like HTML5, CSS and JavaScript to build apps that run on mobile devices. It provides access to device APIs for features like vibration, screen orientation, geolocation and more. Apps can be installed from the Firefox Marketplace and have different security levels depending on their capabilities and access to device features. The document provides examples of how to use APIs for battery status, screen orientation, vibration and other device functions from within Firefox OS apps.
Firefox OS, the Open Web & WebAPIs - HTML5DevConf, San FranciscoRobert Nyman
Mozilla is a nonprofit dedicated to putting users in control of their online experiences and shaping the future of the web for the public good. Firefox OS uses HTML5, CSS, JavaScript, and web APIs to build apps and customize the user interface. It provides both regular and privileged web APIs for functions like notifications, device storage, and web activities. The document outlines the capabilities and APIs available in Firefox OS and provides resources for developing apps and trying out the platform.
Firefox OS, the Open Web & WebAPIs - Geek Meet VästeråsRobert Nyman
Mozilla is a nonprofit dedicated to empowering users and shaping the future of the web. Firefox OS uses HTML5, CSS, and JavaScript to build apps that can access device APIs. It provides different security levels for web content and packaged apps. The document outlines several device APIs available to Firefox OS apps, including battery status, notifications, screen orientation, vibration, and web payments. It also discusses future planned APIs and Mozilla's goal of providing core apps like contacts and settings as open web apps.
The document summarizes key aspects of building Firefox OS to address issues with the mobile web. Firefox OS is Mozilla's attempt to make the web a first-class citizen on phones and tablets by starting with the web stack rather than trying to add the web to an existing OS. It has launched in several countries and aims to be an affordable alternative to feature phones and closed platforms. The architecture is based on Linux, Gecko, and web technologies. It provides predictable HTML5 support and addresses performance, fragmentation, security and hardware access through its design and web APIs.
Firefox OS is an open source mobile operating system developed by Mozilla. It uses open web technologies like HTML5, CSS and JavaScript to build apps, allowing developers to build once and deploy apps across devices without needing to learn different native platforms. The OS consists of Gecko for rendering web content, Gaia for the user interface, Gonk as the Linux-based kernel, and various web APIs for functionality like telephony, SMS, contacts and more. Developers can publish apps to the Mozilla Marketplace or install/host them directly on devices.
This document summarizes the Firefox OS, an open web platform for building mobile apps and customizing the user interface using HTML5, CSS, and JavaScript. It outlines key web APIs, the process for developing and publishing open web apps, and the different types of apps including regular web apps, installed web apps, and privileged web apps with additional capabilities. Security levels and permissions for APIs are also discussed.
Firefox OS allows developers to build apps and customize the user interface using HTML5, CSS, JavaScript, and Web APIs. Apps are developed as regular web apps, with the addition of an app manifest file. Apps can be published to the Firefox Marketplace or installed directly. The Firefox OS platform provides both regular web APIs as well as more privileged APIs that require permissions. Future plans include additional APIs for features like spell checking, peer-to-peer connectivity, and WebRTC. Developers can get help through IRC channels or mailing lists and try things out using emulators, boilerplate apps, and the Firefox OS developer preview.
Firefox OS is an open source operating system built using HTML5 that aims to fulfill the promises made by HTML5 as a platform. It gives developers full access to device hardware through Web APIs while allowing app distribution through the web. The OS is already available on low-cost devices in certain markets. It uses the Gecko rendering engine and a simple architecture based on Linux and Android. This allows it to provide predictable HTML5 support and security for web apps. Developers can build apps using standard web technologies and distribute them via the Firefox OS marketplace or by installing them directly from the web.
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...Robert Nyman
The document discusses building apps for Firefox OS using open web technologies like HTML5, CSS, and JavaScript. It explains that apps can be developed like regular web apps and then packaged for installation on Firefox OS devices. Developers can access device APIs for features like contacts, notifications, and sensors. The document outlines the steps to take which include developing the app, creating a manifest file, and publishing/installing the app. It provides details on various web APIs and permissions available to Firefox OS apps.
So what's the Deal with Firefox OS - MobileTechCon Berlin 2014Christian Heilmann
This is a short talk about the current state of Firefox OS in the market and an explanation of the ideas behind the mobile operating system and its release.
Keynote at Codebits in Portugal, April 2014, explaining the how and why of Firefox OS and how to use it.
Video: https://videos.sapo.pt/ZYQyY57ZlB6lhgIdBzrs
Firefox OS - A (mobile) Web Developers dream - DWX14Carsten Sandtner
My slides from Developer Week 2014 in Nuremberg.
Original Slides: http://casarock.github.io/dwx14
(Quality of uploaded slides is not good as slideshare has problem converting the used backgorund)
Bringing the Open Web & APIs to mobile devices with Firefox OS - Geek MeetRobert Nyman
Firefox OS uses HTML5, CSS, and JavaScript to build apps that run on mobile devices. Developers can create open web apps using these technologies along with app manifest files and by taking advantage of device APIs for features like notifications, vibration, and battery status. The OS supports both packaged and hosted apps and uses a permission system to control access to privileged APIs for functions like contacts, messaging, and telephony. Future plans include additional APIs for areas such as peer-to-peer connectivity, NFC, and WebRTC.
Firefox OS is an open source mobile operating system that aims to provide an alternative to proprietary mobile platforms. It is based on HTML5 and open web technologies. Firefox OS has been released in several countries in partnership with mobile operators and hardware manufacturers. It targets emerging markets and low-cost devices. The document discusses Firefox OS architecture, APIs available to web and installed apps, app distribution methods, and the developer environment.
Firefox OS is an open source mobile operating system built using HTML5 and other web technologies. It allows developers to create apps using standard web technologies and distribute them through the Firefox Marketplace or by installing from the web. Firefox OS is aimed at emerging markets and provides an alternative to proprietary platforms. It includes several web APIs and allows various levels of apps from regular web content to certified apps with additional privileges.
This document discusses the APIs available in Firefox OS for building apps and customizing the user interface. It describes security levels for apps, regular APIs for things like battery status, notifications, and screen orientation, and privileged APIs for accessing contacts, storage, and activities. Future planned APIs are also listed, including WebRTC, WebUSB, and calendar access. The document provides code examples for using many of the APIs and information on getting help or trying out Firefox OS development.
This document discusses building HTML5 apps with native capabilities for BlackBerry devices. It outlines various HTML5 APIs that can access native device features like geolocation, accelerometer, notifications and more. It also describes how to create custom WebWorks APIs that extend HTML5 functionality by connecting to native device APIs for BlackBerry OS, Tablet OS, and BlackBerry 10. Resources provided include documentation, code samples, and details on the WebWorks SDK and roadmap.
The document outlines Firefox OS and open web apps, including an agenda for a workshop on building apps for Firefox OS. It provides overviews of Firefox OS, developing open web apps using HTML5, CSS and JavaScript, app manifest files, and publishing/installing apps. It also describes various web APIs available to Firefox OS apps, including battery status, notifications, screen orientation, vibration, networking information, proximity sensing, ambient light detection, device storage, contacts, and activities. Future planned APIs are listed as well.
Bringing the Open Web & APIs to mobile devices with Firefox OS, JSFoo, IndiaRobert Nyman
Firefox OS uses open web technologies like HTML5, CSS and JavaScript to build apps that run on mobile devices. It includes various web APIs that allow access to device capabilities while maintaining a multi-level security model. The document provides examples of APIs for accessing features like battery status, vibration, screen orientation and more. It also outlines how packaged apps can integrate with device functions through web activities and privileged APIs.
Bringing the Open Web & APIs to mobile devices with Firefox OS - BrazilJSRobert Nyman
Firefox OS is an open source mobile operating system developed by Mozilla that uses HTML5 technologies and APIs to allow developers to build apps and customize the user interface. It aims to bring the open web to mobile by allowing apps to be built with web technologies like HTML, CSS, and JavaScript instead of native development. The document outlines the key technologies that Firefox OS uses like HTML5, manifest files, and various device APIs for features like vibration, screen orientation, geolocation, and more. It also describes the different types of apps and security levels as well as Mozilla's vision for future web standards and APIs.
Bringing the Open Web & APIs to mobile devices with Firefox OS - SpainJSRobert Nyman
Firefox OS uses open web technologies like HTML5, CSS and JavaScript to build apps that run on mobile devices. It provides access to device APIs for features like vibration, screen orientation, geolocation and more. Apps can be installed from the Firefox Marketplace and have different security levels depending on their capabilities and access to device features. The document provides examples of how to use APIs for battery status, screen orientation, vibration and other device functions from within Firefox OS apps.
Firefox OS, the Open Web & WebAPIs - HTML5DevConf, San FranciscoRobert Nyman
Mozilla is a nonprofit dedicated to putting users in control of their online experiences and shaping the future of the web for the public good. Firefox OS uses HTML5, CSS, JavaScript, and web APIs to build apps and customize the user interface. It provides both regular and privileged web APIs for functions like notifications, device storage, and web activities. The document outlines the capabilities and APIs available in Firefox OS and provides resources for developing apps and trying out the platform.
Firefox OS, the Open Web & WebAPIs - Geek Meet VästeråsRobert Nyman
Mozilla is a nonprofit dedicated to empowering users and shaping the future of the web. Firefox OS uses HTML5, CSS, and JavaScript to build apps that can access device APIs. It provides different security levels for web content and packaged apps. The document outlines several device APIs available to Firefox OS apps, including battery status, notifications, screen orientation, vibration, and web payments. It also discusses future planned APIs and Mozilla's goal of providing core apps like contacts and settings as open web apps.
The document summarizes key aspects of building Firefox OS to address issues with the mobile web. Firefox OS is Mozilla's attempt to make the web a first-class citizen on phones and tablets by starting with the web stack rather than trying to add the web to an existing OS. It has launched in several countries and aims to be an affordable alternative to feature phones and closed platforms. The architecture is based on Linux, Gecko, and web technologies. It provides predictable HTML5 support and addresses performance, fragmentation, security and hardware access through its design and web APIs.
Firefox OS is an open source mobile operating system developed by Mozilla. It uses open web technologies like HTML5, CSS and JavaScript to build apps, allowing developers to build once and deploy apps across devices without needing to learn different native platforms. The OS consists of Gecko for rendering web content, Gaia for the user interface, Gonk as the Linux-based kernel, and various web APIs for functionality like telephony, SMS, contacts and more. Developers can publish apps to the Mozilla Marketplace or install/host them directly on devices.
This document summarizes the Firefox OS, an open web platform for building mobile apps and customizing the user interface using HTML5, CSS, and JavaScript. It outlines key web APIs, the process for developing and publishing open web apps, and the different types of apps including regular web apps, installed web apps, and privileged web apps with additional capabilities. Security levels and permissions for APIs are also discussed.
Firefox OS allows developers to build apps and customize the user interface using HTML5, CSS, JavaScript, and Web APIs. Apps are developed as regular web apps, with the addition of an app manifest file. Apps can be published to the Firefox Marketplace or installed directly. The Firefox OS platform provides both regular web APIs as well as more privileged APIs that require permissions. Future plans include additional APIs for features like spell checking, peer-to-peer connectivity, and WebRTC. Developers can get help through IRC channels or mailing lists and try things out using emulators, boilerplate apps, and the Firefox OS developer preview.
Firefox OS is an open source operating system built using HTML5 that aims to fulfill the promises made by HTML5 as a platform. It gives developers full access to device hardware through Web APIs while allowing app distribution through the web. The OS is already available on low-cost devices in certain markets. It uses the Gecko rendering engine and a simple architecture based on Linux and Android. This allows it to provide predictable HTML5 support and security for web apps. Developers can build apps using standard web technologies and distribute them via the Firefox OS marketplace or by installing them directly from the web.
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...Robert Nyman
The document discusses building apps for Firefox OS using open web technologies like HTML5, CSS, and JavaScript. It explains that apps can be developed like regular web apps and then packaged for installation on Firefox OS devices. Developers can access device APIs for features like contacts, notifications, and sensors. The document outlines the steps to take which include developing the app, creating a manifest file, and publishing/installing the app. It provides details on various web APIs and permissions available to Firefox OS apps.
So what's the Deal with Firefox OS - MobileTechCon Berlin 2014Christian Heilmann
This is a short talk about the current state of Firefox OS in the market and an explanation of the ideas behind the mobile operating system and its release.
Keynote at Codebits in Portugal, April 2014, explaining the how and why of Firefox OS and how to use it.
Video: https://videos.sapo.pt/ZYQyY57ZlB6lhgIdBzrs
Firefox OS - A (mobile) Web Developers dream - DWX14Carsten Sandtner
My slides from Developer Week 2014 in Nuremberg.
Original Slides: http://casarock.github.io/dwx14
(Quality of uploaded slides is not good as slideshare has problem converting the used backgorund)
Bringing the Open Web & APIs to mobile devices with Firefox OS - Geek MeetRobert Nyman
Firefox OS uses HTML5, CSS, and JavaScript to build apps that run on mobile devices. Developers can create open web apps using these technologies along with app manifest files and by taking advantage of device APIs for features like notifications, vibration, and battery status. The OS supports both packaged and hosted apps and uses a permission system to control access to privileged APIs for functions like contacts, messaging, and telephony. Future plans include additional APIs for areas such as peer-to-peer connectivity, NFC, and WebRTC.
Firefox OS is an open source mobile operating system that aims to provide an alternative to proprietary mobile platforms. It is based on HTML5 and open web technologies. Firefox OS has been released in several countries in partnership with mobile operators and hardware manufacturers. It targets emerging markets and low-cost devices. The document discusses Firefox OS architecture, APIs available to web and installed apps, app distribution methods, and the developer environment.
Firefox OS is an open source mobile operating system built using HTML5 and other web technologies. It allows developers to create apps using standard web technologies and distribute them through the Firefox Marketplace or by installing from the web. Firefox OS is aimed at emerging markets and provides an alternative to proprietary platforms. It includes several web APIs and allows various levels of apps from regular web content to certified apps with additional privileges.
This document discusses the APIs available in Firefox OS for building apps and customizing the user interface. It describes security levels for apps, regular APIs for things like battery status, notifications, and screen orientation, and privileged APIs for accessing contacts, storage, and activities. Future planned APIs are also listed, including WebRTC, WebUSB, and calendar access. The document provides code examples for using many of the APIs and information on getting help or trying out Firefox OS development.
This document discusses building HTML5 apps with native capabilities for BlackBerry devices. It outlines various HTML5 APIs that can access native device features like geolocation, accelerometer, notifications and more. It also describes how to create custom WebWorks APIs that extend HTML5 functionality by connecting to native device APIs for BlackBerry OS, Tablet OS, and BlackBerry 10. Resources provided include documentation, code samples, and details on the WebWorks SDK and roadmap.
The document outlines Firefox OS and open web apps, including an agenda for a workshop on building apps for Firefox OS. It provides overviews of Firefox OS, developing open web apps using HTML5, CSS and JavaScript, app manifest files, and publishing/installing apps. It also describes various web APIs available to Firefox OS apps, including battery status, notifications, screen orientation, vibration, networking information, proximity sensing, ambient light detection, device storage, contacts, and activities. Future planned APIs are listed as well.
HijackLoader Evolution: Interactive Process HollowingDonato Onofri
CrowdStrike researchers have identified a HijackLoader (aka IDAT Loader) sample that employs sophisticated evasion techniques to enhance the complexity of the threat. HijackLoader, an increasingly popular tool among adversaries for deploying additional payloads and tooling, continues to evolve as its developers experiment and enhance its capabilities.
In their analysis of a recent HijackLoader sample, CrowdStrike researchers discovered new techniques designed to increase the defense evasion capabilities of the loader. The malware developer used a standard process hollowing technique coupled with an additional trigger that was activated by the parent process writing to a pipe. This new approach, called "Interactive Process Hollowing", has the potential to make defense evasion stealthier.
Securing BGP: Operational Strategies and Best Practices for Network Defenders...APNIC
Md. Zobair Khan,
Network Analyst and Technical Trainer at APNIC, presented 'Securing BGP: Operational Strategies and Best Practices for Network Defenders' at the Phoenix Summit held in Dhaka, Bangladesh from 23 to 24 May 2024.
Honeypots Unveiled: Proactive Defense Tactics for Cyber Security, Phoenix Sum...APNIC
Adli Wahid, Senior Internet Security Specialist at APNIC, delivered a presentation titled 'Honeypots Unveiled: Proactive Defense Tactics for Cyber Security' at the Phoenix Summit held in Dhaka, Bangladesh from 23 to 24 May 2024.
30. Open Web Platform Interface
Contacts
Sensors
GeoLocation
Battery
Vibration
Camera
Media
Storage
WebRTC
Alarms
System
Messages
System
XHR
NFC
Bluetooth
WebTelephony
WebSMS/MMS
Settings
Gecko Engine
Security
Web APIs
Open Web
Apps APIs
Network
Connections
/ UICC
mozPay /
Trusted
UI
Web
Activities
HTML5
APIs
37. Apps
Conteúdo Web
Conteúdos Web Padrão
Web Apps Privilegiadas
Mais acesso, mais
responsabilidade
Web Apps Instaladas
Web App Normal
Web App Certificada
Apps Críticas ao
dispositivo
42. Vibration API (W3C)
Screen Orientation
Geolocation API
Mouse Lock API (W3C)
Open WebApps
Network Information API (W3C)
Battery Status API (W3C)
Alarm API
Web Activities
Push Notifications API
WebFM API
WebPayment
IndexedDB (W3C)
Ambient light sensor
Proximity sensor
Notification
WEB APIS (PRA GALERA)
54. window.addEventListener("deviceproximity", function (event) {
// Current device proximity, in centimeters
console.log(event.value);
// The maximum sensing distance the sensor is
// able to report, in centimeters
console.log(event.max);
// The minimum sensing distance the sensor is
// able to report, in centimeters
console.log(event.min);
});
61. // "external", "shared", or "default".
deviceStorage.type;
// Add a file - returns DOMRequest with file name
deviceStorage.add(blob);
// Same as .add, with provided name
deviceStorage.addNamed(blob, name);
// Returns DOMRequest/non-editable File object
deviceStorage.get(name);
// Returns editable FileHandle object
deviceStorage.getEditable(name);
// Returns DOMRequest with success or failure
deviceStorage.delete(name);
// Enumerates files
deviceStorage.enumerate([directory]);
// Enumerates files as FileHandles
deviceStorage.enumerateEditable([directory]);
62. var storage = navigator.getDeviceStorage("videos"),
cursor = storage.enumerate();
cursor.onerror = function() {
console.error("Error in DeviceStorage.enumerate()", cursor.error.name);
};
cursor.onsuccess = function() {
if (!cursor.result)
return;
var file = cursor.result;
// If this isn't a video, skip it
if (file.type.substring(0, 6) !== "video/") {
cursor.continue();
return;
}
// If it isn't playable, skip it
var testplayer = document.createElement("video");
if (!testplayer.canPlayType(file.type)) {
cursor.continue();
return;
}
};
73. Como instalar App da Web
var install app = navigator.mozApps.install(manifestURL);
installapp.onsucess = function(data) {
//App is installed
};
installapp.onerror = function() {
//App wasn’t installed, info is in
// installapp.error.name
};
85. Prototipe com JSFiddle
• Insira /webapp.manifest
para instalar o app no
simulador do Firefox OS
!
• Insira /fxos.html para ter
uma página de instalação
como um app Firefox OS
hospedado