SlideShare a Scribd company logo
Firefox OS
 Web APIs & Apps

                        Jan Jongboom
                   March 13, Budapest
                                        1
@janjongboom



               2
You already have
 created an app




                   3
Embrace the phone



                    4
The mobile web is
     broken
                    5
6
We’re back in 1999




                     7
We’re back in 1999




                     7
No AJAX?!



            8
-webkit-prefix
                9
Let’s open up the
   mobile web


                    10
Firefox OS app
          =
   website + W3C
proposed phone APIs

                      11
12
13
The web is awesome




                     14
So let’s get going...
(nothing fancy yet)
                        15
16
17
18
“Firefox OS Simulator”



                         19
20
21
21
http://localhost:8081/
  manifest.webapp
                         21
22
22
23
Firefox OS
  nagyon
egyszerű!




             24
Now get funky!




                 25
26
27
Unleash the power
   of WebAPIs

                    28
Regular APIs
•   Vibration            •   PushNotifications
•   ScreenOrientation    •   WebFMApi
•   GeoLocation          •   WebPayment
•   MouseLock            •   IndexedDB
•   OpenWebApps          •   AmbientLightSensor
•   NetworkInformation   •   ProxyimitySensor
•   BatteryStatus        •   Notification
•   Alarm
•   WebActivities



           Yellow = Approved by W3C
                                                  29
30
31
32
33
34
I only use
certified APIs!




                 35
Certified APIs
•   WebTelephony          •   WebBluetooth
•   WebSMS                •   PermissionsAPI
•   IdleAPI               •   NetworkStatsAPI
•   SettingsAPI           •   CameraAPI
•   PowerManagementAPI    •   Time/ClockAPI
•   MobileConnectionAPI   •   Attentionscreen
•   WiFiInformationAPI    •   Voicemail




         Requires certification process
                                                36
Your phone is
  aware of your
surroundings, take
    advantage!

                     37
https://github.com/robnyman/
  Firefox-OS-Boilerplate-App




                               38
Application bus
                  39
Hey I need an
                    image!




Sure, I can provide
  you with one!


                                 40
Web activities




                 41
I NEED AN ADULT!
                   42
https://developer.mozilla.org/en-US/docs/WebAPI
                                                  43
Offline




          44
Dealing with offline

• Have the necessary application files
  available
• Cache server side data
• Store app state on device


                                        45
Storing data

• Local Storage
• IndexedDB
• Limited storage!
 • Manifest file can increase

                               46
Two types of apps

• Hosted
 • Assets on the server
 • Cacheable via appcache
• Packaged
 • ZIP archive with assets

                             47
Caching with appcache




                        48
49
49
49
49
49
50
ZIP

• One big zip file
• Resources loaded from zip file
• Still requires manifest file


                                  51
One more thing...



                    52
The app manifest file

      • Part of your packaged app
      • Has metadata (name, description, version)
      • Can define required permissions

https://marketplace.firefox.com/developers/docs/manifests
                                                       53
54
54
54
54
Get hacking!




               55
Questions?

http://bit.ly/ffos-budapest


   github.com/janjongboom

                              56

More Related Content

PPTX
FIREFOX OS
PPT
Firefox OS: bringing the Open Web to mobile devices
PPTX
Firefox operating system
PDF
Firefox OS and the Internet of Things - NDC London 2014
PDF
Firefox OS Intro
PPT
Firefox os-introduction
PPTX
1A - MOBILIZING YOUR GIS - USING CROSS PLATFORM MOBILE APPLICATION DEVELOPMEN...
FIREFOX OS
Firefox OS: bringing the Open Web to mobile devices
Firefox operating system
Firefox OS and the Internet of Things - NDC London 2014
Firefox OS Intro
Firefox os-introduction
1A - MOBILIZING YOUR GIS - USING CROSS PLATFORM MOBILE APPLICATION DEVELOPMEN...

What's hot (14)

PDF
BlackBerry Developer Overview
PDF
Ibm i-modernization
PPTX
Wikipedia Mobile App with PhoneGap
PDF
Enterprise iPad Development Without Notes
PPTX
2011 code camp
PPTX
AFNetworking
PPTX
Mozilla's Boot to Gecko (B2G)
PDF
Php Development In The Cloud
PPTX
Bootstrap4XPages - an introduction
PPTX
SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...
PDF
Your last mile to SOA and Web 2.0- Lotus Expeditor for Devices - Eric MF Hsu,...
PDF
Introduction to Phonegap
PPTX
Nfc in wp8
ODP
Synapse india reviews on asp.net mobile application
BlackBerry Developer Overview
Ibm i-modernization
Wikipedia Mobile App with PhoneGap
Enterprise iPad Development Without Notes
2011 code camp
AFNetworking
Mozilla's Boot to Gecko (B2G)
Php Development In The Cloud
Bootstrap4XPages - an introduction
SydMobDev Feb 2014 - Cross Platform Native App Development with Xamarin and M...
Your last mile to SOA and Web 2.0- Lotus Expeditor for Devices - Eric MF Hsu,...
Introduction to Phonegap
Nfc in wp8
Synapse india reviews on asp.net mobile application
Ad

Similar to Firefox OS Apps and Web APIs (20)

PDF
Webapi
PDF
Firefox OS Apps & APIs - Dutch Mobile Conference / Serbia & Montenegro App da...
KEY
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
PDF
Firefox OS Weekend
PDF
Web APIs & Apps - Mozilla
KEY
2012 09-04 smart devcon - boot to the web, boot 2 gecko
PDF
WebAPIs & Apps - Mozilla London
PDF
Fixing the mobile web - Internet World Romania
PDF
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
PDF
Empowering the Mobile Web - Mills
PDF
Empowering the "mobile web"
PDF
Empowering the “Mobile Web” with Chris Mills
PDF
(Christian heilman) firefox
PDF
Øredev2013 - FirefoxOS - the platform HTML5 deserves
PDF
Jornada Desarrolladores: WAC: 'Wholesale Applications Community'
PDF
Web versus Native: round 1!
PDF
Firefox OS - Answering global challenges
PDF
Firefox OS Apps & Apis - WebRebels App day 2013
KEY
Phonegap 2.x
PDF
Firefox OS - HTML5 for a truly world-wide-web
Webapi
Firefox OS Apps & APIs - Dutch Mobile Conference / Serbia & Montenegro App da...
2012 11-01 Hackers & founders - Boot to the web, boot 2 gecko / Firefox OS
Firefox OS Weekend
Web APIs & Apps - Mozilla
2012 09-04 smart devcon - boot to the web, boot 2 gecko
WebAPIs & Apps - Mozilla London
Fixing the mobile web - Internet World Romania
Bringing the open web and APIs to mobile devices with Firefox OS - Whisky W...
Empowering the Mobile Web - Mills
Empowering the "mobile web"
Empowering the “Mobile Web” with Chris Mills
(Christian heilman) firefox
Øredev2013 - FirefoxOS - the platform HTML5 deserves
Jornada Desarrolladores: WAC: 'Wholesale Applications Community'
Web versus Native: round 1!
Firefox OS - Answering global challenges
Firefox OS Apps & Apis - WebRebels App day 2013
Phonegap 2.x
Firefox OS - HTML5 for a truly world-wide-web
Ad

More from Jan Jongboom (20)

PDF
TinyML on Arduino - workshop
PDF
Intelligent Edge - Getting started with TinyML for industrial applications
PDF
Teaching your sensors new tricks with Machine Learning - Eta Compute webinar
PDF
Get started with TinyML - Embedded online conference
PDF
Adding intelligence to your LoRaWAN deployment - The Things Virtual Conference
PDF
Get started with TinyML - Hackster webinar 9 April 2020
PDF
Tiny intelligent computers and sensors - Open Hardware Event 2020
PDF
Teaching your sensors new tricks with Machine Learning - CENSIS Tech Summit 2019
PDF
Adding intelligence to your LoRaWAN devices - The Things Conference on tour
PDF
Machine learning on 1 square centimeter - Emerce Next 2019
PDF
Fundamentals of IoT - Data Science Africa 2019
PDF
17,000 contributions in 32K RAM - FOSS North 2019
PDF
Open Hours: Mbed Simulator
PDF
Efficient IoT solutions based on LoRaWAN, The Things Network and Mbed OS
PDF
Machine learning on 1 cm2 - Tweakers Dev Summit
PDF
Simulating LoRaWAN devices - LoRa Alliance AMM 2019
PDF
Develop with Mbed OS - The Things Conference 2019
PDF
Firmware Updates over LoRaWAN - The Things Conference 2019
PDF
Faster Device Development - GSMA @ CES 2019
PDF
Mbed LoRaWAN stack: a case study - LoRa Alliance AMM Tokyo
TinyML on Arduino - workshop
Intelligent Edge - Getting started with TinyML for industrial applications
Teaching your sensors new tricks with Machine Learning - Eta Compute webinar
Get started with TinyML - Embedded online conference
Adding intelligence to your LoRaWAN deployment - The Things Virtual Conference
Get started with TinyML - Hackster webinar 9 April 2020
Tiny intelligent computers and sensors - Open Hardware Event 2020
Teaching your sensors new tricks with Machine Learning - CENSIS Tech Summit 2019
Adding intelligence to your LoRaWAN devices - The Things Conference on tour
Machine learning on 1 square centimeter - Emerce Next 2019
Fundamentals of IoT - Data Science Africa 2019
17,000 contributions in 32K RAM - FOSS North 2019
Open Hours: Mbed Simulator
Efficient IoT solutions based on LoRaWAN, The Things Network and Mbed OS
Machine learning on 1 cm2 - Tweakers Dev Summit
Simulating LoRaWAN devices - LoRa Alliance AMM 2019
Develop with Mbed OS - The Things Conference 2019
Firmware Updates over LoRaWAN - The Things Conference 2019
Faster Device Development - GSMA @ CES 2019
Mbed LoRaWAN stack: a case study - LoRa Alliance AMM Tokyo

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
Mobile App Security Testing_ A Comprehensive Guide.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
sap open course for s4hana steps from ECC to s4
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Chapter 3 Spatial Domain Image Processing.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Understanding_Digital_Forensics_Presentation.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Big Data Technologies - Introduction.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
MIND Revenue Release Quarter 2 2025 Press Release

Firefox OS Apps and Web APIs