+ All Categories
Home > Software > Introduction to Phonegap

Introduction to Phonegap

Date post: 08-May-2015
Category:
Upload: andrei-firoiu
View: 134 times
Download: 0 times
Share this document with a friend
Description:
A short introduction in developing mobile apps with Phonegap
21
Introduction to Phonegap Andrei Firoiu @andreifiroiu http://andreifiroiu.me
Transcript
Page 1: Introduction to Phonegap

Introduction to Phonegap

Andrei Firoiu @andreifiroiu

http://andreifiroiu.me

Page 2: Introduction to Phonegap

Mobile app types

• Native

• Web based

• Hybrid

Page 3: Introduction to Phonegap

Native• dev in device-specific languages (Objective C,

Java)

• full access to device APIs (storage, location services, sensors, etc)

• native UI

• fast

Page 4: Introduction to Phonegap

Web based• dev in web based languages/frameworks (HTML5,

JavaScript)

• running in browser, everything is loaded from a server

• no access to native APIs

• easy to made/deploy

• slow

Page 5: Introduction to Phonegap

Hybrid

• layout rendering is done via web views

• packaged as apps for distribution

• have access to native device APIs (plugins, intermediate APIs)

• intermediate speed

Page 6: Introduction to Phonegap

Hybrid Platforms

• PhoneGap

• Intel App Framework

• Titanium Appcelerator

• and more

Page 7: Introduction to Phonegap

Phonegap History• 2008 - Born at iPhoneDevCamp event in San

Francisco

• 2009 - Apple Inc. has confirmed that the framework has its approval

• 2011 - Adobe officially announced the acquisition of Nitobi Software

• 2011 - Contributed to the Apache Software Foundation (Apache Cordova)

Page 8: Introduction to Phonegap

!

Phonegap =

Apache Cordova

http://phonegap.com/ https://cordova.apache.org/

Page 9: Introduction to Phonegap

Phonegap = Apache Cordova

• Cordova is the open source Apache project

• Phonegap is the downstream distribution of Cordova from Adobe

• PhoneGapBuild (cloud compiler)

Page 10: Introduction to Phonegap

Supported platforms!

• iOS

• Android

• Windows 8

• Windows Phone 7 and 8

• BlackBerry 5.x+

• WebOS

• Symbian

• Tizen

Page 11: Introduction to Phonegap

Platform Components

• web UI frameworks (jQuery Mobile)

• a set of device APIs that allow to access native device functions from JavaScript

• a bridging mechanism that allows JavaScript running in the Web view to invoke native code contained in the application

Page 12: Introduction to Phonegap

Mobile Frameworks• jQuery Mobile

• Ionic / Angular

• Sencha Touch

• Kendo UI Complete

• AppGyver / Steroids

• Enyo

• …and another quadrillion of them

Page 13: Introduction to Phonegap

Plugins!

• battery status

• accelerometer / compass

• camera

• contacts

• file system

• media playback and recording

• network availability

• geolocation

Page 14: Introduction to Phonegap

Plugins!

• barcode scanning

• Bluetooth

• push notifications

• text to speech

• calendars

• Facebook Connect

Page 15: Introduction to Phonegap

DOM objects / API calls

Page 16: Introduction to Phonegap

Demo Time!

Page 17: Introduction to Phonegap

Examples

Page 18: Introduction to Phonegap

Debugging• Browser dev/debugging tools

• Apache Ripple

• Safari Web Inspector

• Google Chrome Dev Tools

• weinre (WEb INspector REmote)

Page 19: Introduction to Phonegap

PhoneGapBuild

• Build apps in the cloud

• Don’t need platform specific tools (Xcode, Android SDK)

Page 20: Introduction to Phonegap

Conclusions

• Unitary design across mobile platforms

• Attempting to mimic the native platform controls in HTML and CSS is generally a bad idea.

• Best for rapid prototyping

• Code once, deploy everywhere

Page 21: Introduction to Phonegap

Thanks! Q&A

Andrei Firoiu @andreifiroiu

http://andreifiroiu.me


Recommended