41
PhoneGap – Solving Mobile Fragmentation Problems By Rohit Ghatol and Yogesh Patel Author of “ Beginning PhoneGap

PhoneGap – Solving Mobile Fragmentation Problems

  • Upload
    idalee

  • View
    41

  • Download
    1

Embed Size (px)

DESCRIPTION

PhoneGap – Solving Mobile Fragmentation Problems. By Rohit Ghatol and Yogesh Patel Author of “ Beginning PhoneGap ”. 30 Minutes Presentation!. Rest all Discussion! Then Quiz! !. Anything you wanna talk about!!. For Today No Structured Presentation!!. Topics. Fragmentation. Cost. - PowerPoint PPT Presentation

Citation preview

Page 1: PhoneGap – Solving Mobile Fragmentation Problems

PhoneGap – Solving Mobile Fragmentation Problems

By Rohit Ghatol and Yogesh Patel Author of “Beginning PhoneGap”

Page 2: PhoneGap – Solving Mobile Fragmentation Problems

30 Minutes Presentation!

Rest all Discussion!

Then Quiz!!

Page 3: PhoneGap – Solving Mobile Fragmentation Problems

Topics

FragmentationCost

For Today No

Structured

Presentation!!

Time to

Market

Dev QA team

Best

Practices

CIT

Anything you wanna talk about!!

UI Development

Max

Reuse

Tools

QAMashups

Page 4: PhoneGap – Solving Mobile Fragmentation Problems

Mobile Fragmentation

Page 5: PhoneGap – Solving Mobile Fragmentation Problems

What is PhoneGap?

Page 6: PhoneGap – Solving Mobile Fragmentation Problems

• What it is?Its an extensible JavaScript API Library?

• What it is not?Not an UI Framework Not a Packaging Framework Not an IDE

Page 7: PhoneGap – Solving Mobile Fragmentation Problems
Page 8: PhoneGap – Solving Mobile Fragmentation Problems

Geo Location

Contacts

Capture Image

And many more…

Page 9: PhoneGap – Solving Mobile Fragmentation Problems
Page 10: PhoneGap – Solving Mobile Fragmentation Problems

• But the catch isYou still need to use

- Android, - iPhone,- BlackBerry and etc

Development Environment to build and package the final mobile application

Page 11: PhoneGap – Solving Mobile Fragmentation Problems

Its available on 6 Mobile Platforms

Page 12: PhoneGap – Solving Mobile Fragmentation Problems

Why PhoneGap?

Page 13: PhoneGap – Solving Mobile Fragmentation Problems

iPhone Android BlackBerry Windows

PhoneGap.js PhoneGap.js PhoneGap.js PhoneGap.js ........

Coffee

Generic FeaturesMobile Features

• HTML UI• Login• Ajax Calls• Maps API

• GPS Coordinates• Local Storage• Compass• Camera

Coffee

Page 14: PhoneGap – Solving Mobile Fragmentation Problems
Page 15: PhoneGap – Solving Mobile Fragmentation Problems

How to use PhoneGap?

Page 16: PhoneGap – Solving Mobile Fragmentation Problems
Page 17: PhoneGap – Solving Mobile Fragmentation Problems
Page 18: PhoneGap – Solving Mobile Fragmentation Problems
Page 19: PhoneGap – Solving Mobile Fragmentation Problems

Heaven for Mashups

Page 20: PhoneGap – Solving Mobile Fragmentation Problems

Understand JS Mashups

• Understand Single Origin Policy

• How this problem does not affect PhoneGap Apps?

• Think about possibilities without the need of a server

Page 21: PhoneGap – Solving Mobile Fragmentation Problems

Understand the Problem

Page 22: PhoneGap – Solving Mobile Fragmentation Problems

http://abc.com

http://api.maps.com

http://api.twitter.com

http://api.facebook.com

{json req resp}

Single Origin Policy restricts this

Page 23: PhoneGap – Solving Mobile Fragmentation Problems

Traditional Solutions

Page 24: PhoneGap – Solving Mobile Fragmentation Problems

http://abc.com

http://api.maps.com

http://api.twitter.com

http://api.facebook.com

{jsonp req resp}

Single Origin Policy

JSONP makes cross domain

request possible

Page 25: PhoneGap – Solving Mobile Fragmentation Problems

http://abc.com

http://api.maps.comhttp://api.twitter.comhttp://api.facebook.com

Server Side Code

http://abc.com

PROXY MODEL

Server is required

Page 26: PhoneGap – Solving Mobile Fragmentation Problems

What’s different about PhoneGap?

PhoneGap Apps don’t have any domain names.

Page 27: PhoneGap – Solving Mobile Fragmentation Problems

PhoneGap ApplicationHTML files have no

domain name

http://api.maps.com

http://api.twitter.com

http://api.facebook.com

{json req resp}

Single Origin PolicyDoes not apply

Page 28: PhoneGap – Solving Mobile Fragmentation Problems

Developing PhoneGap UI

Page 29: PhoneGap – Solving Mobile Fragmentation Problems

jQueryMobile

Best for Simpler only Smart Phone UI

Page 30: PhoneGap – Solving Mobile Fragmentation Problems

Sencha Touch

Best for Complex SmartPhone/Tablet UI

Page 31: PhoneGap – Solving Mobile Fragmentation Problems

GWT

• Best for CoBest Framework to build your own solutions on. Good for in house product development platform

• GWT Library is available at http://code.google.com/p/gwt-phonegap/ • mplex SmartPhone/Tablet UI

Page 32: PhoneGap – Solving Mobile Fragmentation Problems

PhoneGap’s Plugin Platform

Page 33: PhoneGap – Solving Mobile Fragmentation Problems
Page 35: PhoneGap – Solving Mobile Fragmentation Problems

Ripple - PhoneGap Emulator

Page 36: PhoneGap – Solving Mobile Fragmentation Problems

DEMO THIS

Page 37: PhoneGap – Solving Mobile Fragmentation Problems

PhoneGap – Remote Debug

Page 38: PhoneGap – Solving Mobile Fragmentation Problems

DEMO THIS

Page 39: PhoneGap – Solving Mobile Fragmentation Problems

PhoneGap Build

Page 40: PhoneGap – Solving Mobile Fragmentation Problems

Build on the Cloud

Page 41: PhoneGap – Solving Mobile Fragmentation Problems

Quiz

• What Mobile Platforms does PhoneGap Supports?

• How many callbacks does a typical PhoneGap API required? What are these?

• How do we debug a PhoneGap App deployed to mobile phone?

• What is the first event fired by PhoneGap?• Can PhoneGap Apps do background processing?