The future is hybrid
...or is it?
Hi there!
The future is user-focused
The future is user-focused
What we’ll cover
0. Prologue
1. Firefox OS
2. Web APIs
3. Phonegap
4. Web Components
What are apps?
“native” Apps

Web apps

●
●
●
●
●

●
●
●
●
●

in the App stores
home screen icon
work offline
fully-featured
custom UI

in the App stores ✓*
home screen icon ✓
work offline
✓
fully-featured
✓*
custom UI
✓
Use the web, Luke
1. Firefox OS
The web is the platform
● Standard APIs for all features
● Fully open
● Open Web Apps
1. Firefox OS
The $100 smartphone?

69€

$129

90€
1. Firefox OS - the open experience
Search the web
See if you like it
Install it
1. Firefox OS - the web experience
Search the web
See if you like it
Install it
1. Firefox OS - Open web apps
Hosted / Packaged apps
Minimal: Your website + Manifest

Privileged apps
Minimal: Your app, signed

Certified apps
Minimal: Certified by OEMs
1. Firefox OS - Manifest?
{
name: “Hello FOWA”,
description: “A simple web app”,
...
}
1. Firefox OS - Web activities
2. Web APIs
WebFM
Ambient Light Battery Status
Proximity
Contacts
Bluetooth
Vibration
Web Payments

Network Info
Idle

https://developer.mozilla.org/en-US/docs/WebAPI

Storage
Notifications
3.
What if you want that today?
3. PhoneGap
You can have it today!
Web vs. App - FIGHT!

Thanks for that,
Why fight?
What’s hybrid?
3. PhoneGap
Your web app
+
native APIs
+
installable App
=
APPsomeness!
Get your hands on it
Locally:
<Setup SDKs>
npm install -g cordova
cordova create helloapp && cd helloapp
cordova platform add <platform>
cordova build -d

Deploy!
Get your hands on it - even easier!

build.phonegap.com
Caution, speed bumps ahead..
Caution, speed bumps ahead..
1. Do not just wrap your web(site | app)
2. Test test test and test!
3. Expect the unexpected
a.

Rendering performance

b.

Feature support

c.

Click vs. Touch

4. Did I mention “TEST”?
And now...

The super-quick-live-coding™
4. Web components
4. Web components

Build your own HTML elements
4. Web components

Build your own HTML elements
using HTML, CSS and Javascript
4. Web components
4. Web components
Welcome to the future, today!
Oh - and for the others:
X-Tags, Polymer
4. Web components
So, what can we do?
● easily reuse components
● speed up the web evolution
● open up the web
4. Web components

Meet the AppMaker
appmaker.mozillalabs.com
4. Web components

Let’s build one now!
The super-quick-live-coding™
Vol. II
</body>
Thank you for listening

Questions, please!

The future is hybrid