410 likes | 600 Views
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.
E N D
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 Tools Mashups QA CIT Dev QA team Time to Market Best Practices UI Development Max Reuse
What it is?Its an extensible JavaScript API Library? What it is not?Not an UI Framework Not a Packaging Framework Not an IDE
Geo Location Contacts Capture Image And many more…
But the catch isYou still need to use - Android, - iPhone,- BlackBerry and etcDevelopment Environment to build and package the final mobile application
Mobile Features Generic Features Coffee Coffee • HTML UI • Login • Ajax Calls • Maps API • GPS Coordinates • Local Storage • Compass • Camera PhoneGap.js PhoneGap.js PhoneGap.js PhoneGap.js . . . . . . . . iPhone Android BlackBerry Windows
Understand JS Mashups • Understand Single Origin Policy • How this problem does not affect PhoneGap Apps? • Think about possibilities without the need of a server
Single Origin Policy restricts this {jsonreqresp} http://abc.com http://api.maps.com http://api.twitter.com http://api.facebook.com
Single Origin Policy {jsonpreqresp} http://abc.com http://api.maps.com http://api.twitter.com http://api.facebook.com JSONP makes cross domain request possible
PROXY MODEL Server is required http://abc.com http://api.maps.com http://api.twitter.com http://api.facebook.com http://abc.com Server Side Code
What’s different about PhoneGap? PhoneGap Apps don’t have any domain names.
Single Origin Policy Does not apply {jsonreqresp} http://api.maps.com http://api.twitter.com http://api.facebook.com PhoneGap Application HTML files have no domain name
jQueryMobile Best for Simpler only Smart Phone UI
Sencha Touch Best for Complex SmartPhone/Tablet UI
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/ mplexSmartPhone/Tablet UI
Some Exciting PhoneGap Plugin • Facebook Connect Plugin • Android C2DM Plugin • Apple Push Plugin
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?