html5 app dev on blackberry 10

35
Silicon Valley Web Builder Meetup 4-24-13 Larry McDonough Principal Evangelist, BlackBerry @LMCDUNNA

Upload: larry-mcdonough

Post on 09-May-2015

786 views

Category:

Technology


2 download

DESCRIPTION

Presentation I gave at the Silicon Valley Web Builders Meetup on 4/24/13

TRANSCRIPT

Page 1: HTML5 App Dev on BlackBerry 10

Silicon ValleyWeb Builder Meetup4-24-13

Larry McDonoughPrincipal Evangelist, BlackBerry

@LMCDUNNA

Page 2: HTML5 App Dev on BlackBerry 10

Agenda• Intro

• Short BlackBerry 10 Demo

• Developing for BlackBerry 10

• BlackBerry 10: A Leading Mobile Web Platform

• Building “Hello World” using Ripple

• Sampling of HTML5 Apps on BlackBerry

• Upcoming BlackBerry Events

Page 3: HTML5 App Dev on BlackBerry 10

3OpenGL APIs®

lex/yacc parsers

MapViewDesert StormPentagon…

Chair, Los AngelesACM SIGCHI

Eyematic FaceStation

J2ME

Who is this guy? Late 1980’sM

id 1990’s

Late 1990’sEarly 2000’s

200

620

10

200

3

Page 4: HTML5 App Dev on BlackBerry 10

BlackBerry 10

Page 5: HTML5 App Dev on BlackBerry 10

Launched on January 30th, 2013

Device Demo•The Hub•Time Shift•Balance•Keyboard

Page 6: HTML5 App Dev on BlackBerry 10

Where Did BlackBerry 10 Come From?

6

BlackBerry® PlayBook™

HTML5 WebWorks

BlackBerry 10TM

http://developer.blackberry.com

Page 7: HTML5 App Dev on BlackBerry 10

BlackBerry World Reach• Over 80 Million

Subscribers• 170 Markets• Over 4 Billion Apps

Downloaded• 100,000+ BB10 apps

up for sale• 110,000+ apps for

BBOS and older devices

• 64,000+ vendors

Today

100K+

Apps

Page 8: HTML5 App Dev on BlackBerry 10

High Level Architecture

BlackBerry Services(BES / Mobile Fusion, BIS, Push, Maps, Payments, BBM, Scoreloop, etc.)

HTML 5 & WebWorks

Native C/C++ &Cascades UI

BlackBerry 10 OS

http://developer.blackberry.com

Page 9: HTML5 App Dev on BlackBerry 10

Developers have ChoicesRuntimes & Frameworks

ActionScript

Adobe AIRHTML5, CSS, JavaScript

WebWorksC/C++

Native SDK

Java

AndroidRuntime

Page 10: HTML5 App Dev on BlackBerry 10

Other “Frameworks”??

Lots on GitHub! https://github.com/blackberry Other “frameworks” ?

Backbone.js – a framework for adding MVC (or MVP) structure to your Web applications. Not a UI framework. See: http://devblog.blackberry.com/tag/backbone-js/

Angular.js – similar to backbone.js, but created by Google. Node.js – This is a JavaScript runtime (not a JavaScript framework). You

install this on a machine and interact with it via JavaScript from the command line. Think of it as a browser with no UI. See: http://devblog.blackberry.com/?s=node.js&search=

10

Page 11: HTML5 App Dev on BlackBerry 10

BaaS Providers?

All have javascript API They help you focus on your app’s UI/UX by dealing with

all the ugly backend stuff (databases, notifications, authentication, scalability, cloud storage, etc.)

Stackmob: https://www.stackmob.com/ Parse: https://parse.com/ Kinvey: http://www.kinvey.com/ Fat Fractal: http://fatfractal.com/

11

Page 12: HTML5 App Dev on BlackBerry 10

BlackBerry 10: A Leading Mobile Web Platform

Larry McDonoughPrincipal Evangelist, BlackBerry

@LMCDUNNA

Page 13: HTML5 App Dev on BlackBerry 10

BlackBerry 10

13

TOP TIER BrowserCOMMITTED to Open Standards & Open Web

Web Apps are FIRST CLASS Citizens

BlackBerryZ10

Page 14: HTML5 App Dev on BlackBerry 10

What’s BlackBerry’s Web Strategy?

Leading HTML5 support Be very active in

WebKit contributions Top open source frameworks (jQM, Cordova)

First-class support for packaged Web apps Enable native integration

But deprecate in favor of Standards as they evolve

Push the boundaries of mobile web as a platform…

14

Page 15: HTML5 App Dev on BlackBerry 10

Not Your Father’s Smart Phone!

15

1. BlackBerry has a TOP TIER Browser now (and has for a while!)

2. BlackBerry is COMMITTED to working in the OPEN and contributing to Open Standards. We are putting Money and Resources behind the Open Web

3. We treat Web Apps as FIRST CLASS CITIZENS on the Platform

BlackBerryQ10

Page 16: HTML5 App Dev on BlackBerry 10

HTML5Test.com/compare/browser/index.html

16

Mobile

Desktop / Other

Page 17: HTML5 App Dev on BlackBerry 10

ringmark on BlackBerry 10

17

BlackBerry 10 is the first vendor mobile browser to pass ringmark ring 1!

A web-based test suite for capabilities that modern web apps require

Page 18: HTML5 App Dev on BlackBerry 10

Top New Features

Performance is always feature #1 New CSS support File System APIs getUserMedia indexedDB WebGL requestAnimationFrame In app payments

18

Page 19: HTML5 App Dev on BlackBerry 10

What’s on the Roadmap?

https://developer.blackberry.com/html5/download/roadmap/

19

Page 20: HTML5 App Dev on BlackBerry 10

What’s on the Roadmap?

https://developer.blackberry.com/html5/download/roadmap/

20

Page 21: HTML5 App Dev on BlackBerry 10

The Browser Stack

21

Page 22: HTML5 App Dev on BlackBerry 10

Web Platform

Web Platform – a new framework for Web applications The foundation of the Browser, WebWorks, QNXCar2 UI Multi-process launcher Management of WebViews (independent web content container) Native API access from JavaScript – platform integration

e.g. PPS, sharing framework, invocation framework BlackBerry 10 UI elements…

22

Page 23: HTML5 App Dev on BlackBerry 10

Web Platform provides Native UI Elements

We have Web versions of BlackBerry 10 UI Using HTML, CSS, JavaScript, SVG, images CSS transitions (accelerated compositing) are key to making things fast,

window animations cover some additional tricky cases Dialogs, form elements, action bar, sheets, crosscut menu, viewers/cards

23

Page 24: HTML5 App Dev on BlackBerry 10

Anatomy of the Browser

24

Did you know?The

BlackBerry Browser itself _IS_ an

HTML5/WebWorks app!

Page 25: HTML5 App Dev on BlackBerry 10

Anatomy of the Browser

25

Page 26: HTML5 App Dev on BlackBerry 10

Anatomy of the Browser

26Chrome WebViews Content WebViews

Page 27: HTML5 App Dev on BlackBerry 10

Open Web

We Build in the Open (http://github.com/blackberry)

We Contribute to Open Standards and Frameworks (WebKit, jQuery Mobile, Apache Cordova)

We are Aligning our Web Platform around Cordova:

27

WebWorksApacheCordova

ApacheCordova

WebWorks

Today Coming Soon

BlackBerry

BlackBerry

Page 28: HTML5 App Dev on BlackBerry 10

Application Development

What if you could build a BlackBerry application using Web technologies?

Page 29: HTML5 App Dev on BlackBerry 10

Web Flow. Web Experience. Just like Native.

29

jQuery MobileSenchaDojoZepto3.js…

Web InspectorRippleWeinreCodiqaCloud9…

Apache CordovaWebWorks

Frameworks Tools Build / Deploy

1 2 3

First Class Means: Same Performance and Features as browser Same Performance and Features as native apps (goal)

Page 30: HTML5 App Dev on BlackBerry 10

BlackBerry 10, Web Platform Recap

30

1. TOP TIER Browser

2. COMMITTED to Open Standards & Open Web

3. Web Apps are FIRST CLASS Citizens Performance & Feature Parity

Page 31: HTML5 App Dev on BlackBerry 10

The Proverbial“Hello World”App…

1. Review

2. Build

3. Deploy

4. Run

Page 32: HTML5 App Dev on BlackBerry 10

“Hello World” Resources:

• http://developer.blackberry.com/

• http://devblog.blackberry.com/

• https://github.com/blackberry

• https://github.com/Noctivagan/HelloWorld

Source code &Tutorial ppt.

Page 33: HTML5 App Dev on BlackBerry 10

Sample of HTML5 Apps on BlackBerry

Fly Delta Flixster New York Rangers Official

App porter Snooby: a reddit client StubHub theScore Trapeez TuneIn USA Today

33

Page 34: HTML5 App Dev on BlackBerry 10

Upcoming Events

Casual Hack Day at the Dojo Sunday April 28th @ Hacker Dojo, Mountain View http://www.meetup.com/SVBBDev-Silicon-Valley-BlackBerry-Jammors/

events/109782412/

BlackBerry Jam Americas @ BlackBerry Live May 14-16 in Orlando, Florida.  Your reg code for free access: CWGX66 Register here: http://www.blackberryjamconference.com/americas?

CPID=OTC-2013BBJAMAM05]

All Events: https://www.blackberrydeveloperevents.com/events/home.html

34

Page 35: HTML5 App Dev on BlackBerry 10

Thank You

Larry McDonoughPrincipal Evangelist, BlackBerry

@LMCDUNNA