Top Banner
MOBILE DEVELOPMENT WITH PHONEGAP JOSHUA JOHNSON WEB DEVELOPER, GODADDY LinkedIn 1st&5 Use #phxmobi as the twitter hashtag Download Phoenix Mobile Festival App from AppStore or Google Play
18

Mobile Development with PhoneGap

May 28, 2015

Download

Software

Joshua Johnson

You can develop native mobile applications using HTML/CSS/JS with the help of PhoneGap. I will show you how to achieve the best possibe native experience using web technologies and optimize your workflow with automation.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Mobile Development with PhoneGap

MOBILE DEVELOPMENT WITH PHONEGAPJOSHUA JOHNSONWEB DEVELOPER, GODADDY

LinkedIn1st&5

Use #phxmobi as the twitter hashtag

Download Phoenix Mobile Festival App from AppStore orGoogle Play

Page 2: Mobile Development with PhoneGap

ABOUT MEMobile Web Developer at GoDaddyReleased iOS and Android Fantasy Football Apps withPhoneGapPassionate about new technology

Page 3: Mobile Development with PhoneGap

THE PROBLEMYou have an idea for an application but how do you get it to the

public on all platforms quickly?

Hiring for completely different skill setsTime to deliver a new feature or redesignDifferent look/feel across platforms

Page 4: Mobile Development with PhoneGap

PHONEGAP TO THE RESCUEMobile development framework that allows you to createcross platform mobile applicationsHTML/CSS/JSCreated in 2009 by NitobiPurchased by Adobe in 2011Cordova: free open source core of PhoneGap donated toApacheSingle code base, unified look/feel, only need web developersPerfect for emerging SPA JavaScript web frameworks(AngularJS)Growing community, new UI frameworks

Page 5: Mobile Development with PhoneGap

HOW DOES IT WORK?

sudo npm install -g cordova cordova create hello com.example.hello HelloWorld && cd hello cordova platform add ios cordova build ios

Wraps your application into a WebView for all platformsJavaScript plugins that access native device featuresconfig.xml to store details about the app (platform specific)Packaged as apps using platform SDKs and distributedthrough native methods

or (no SDKs necessary but not free)PhoneGap Build Telerik

Page 6: Mobile Development with PhoneGap

WHY WEB OVER NATIVE?Technologies are converging on web languagesServer code can now be written in JS (Node)Easier to hire and build teams around one single technologyset

Page 7: Mobile Development with PhoneGap

ANGULARJSJavaScript framework that allows you to build single page webapplicationsLargest community support among JavaScript frameworks(Google)The perfect match: index.html

Other alternatives (Ember, Knockout, Backbone, even jQuery)Open source modules

Page 8: Mobile Development with PhoneGap

PLUGINSOpen-source JavaScript plugins exposing native featuresExamples: camera, geolocation, acceleromter, splashscreen,storageBuild your own plugins

: wraps Cordova plugins in AngularJS modulesngCordova

Page 9: Mobile Development with PhoneGap

BRIDGE THE UI GAPUnderstand your tools and use good judgementHardware-accelerated CSS transitions (avoid jQuery)Find a good UI Framework to mitigate the issuesExecute on a solid design with solid HTML/CSS/JS skillsconfig.xml: Control app behaviour (Fullscreen, Orientation,DisallowOverscroll, etc)

Page 10: Mobile Development with PhoneGap

TIPS/TRICKSFastClick: remove 300ms delayDisable pinch and zoom with meta tag-webkit-overflow-scrolling: touch; Give it the smooth scrollingfeelMake all your images 3x as big for new retina devicesBe mindful of application context (minimize HTTP calls)Test on lots of real devicesConstant user feedbackBe careful with ng-repeat ( , )Chrome + Batarang to debug

infinite scroll bindonce

Angular snap

Page 11: Mobile Development with PhoneGap

AUTOMATIONGRUNT: JAVASCRIPT TASK RUNNER

Watch file changes, auto reload browser, run unit testsJavaScript linting to keep code cleanAutomatically build, minify, copy application files

BOWER: WEB PACKAGE MANAGER

Manage and version control all front end packagesSingle command to add packagebower.json

YEOMAN: SCAFFOLD YOUR CODE

Scaffold new pages/featuresPrescribe all the best practices and code structure

, AngularJS Combined with PhoneGap

Page 12: Mobile Development with PhoneGap

UI FRAMEWORKSFully responsive, multiple devices, UI components at the readyBootstrap, (great examples ofdirectives): targeted for web apps but works

native mobile app components, built for AngularJS andPhoneGap specifically

Works with any JS framework, similar to Ionic withless support

jQuery Mobile: no, just no

AngularJS Bootstrap UI

Ionic:

Onsen UI:

Kendo UIFont Awesome

Page 13: Mobile Development with PhoneGap

CONSPoor performance with graphic intensive applications, sorrygamesNo pre-built UI components, transitions, standard controlsLess community support than native development

Page 14: Mobile Development with PhoneGap

PHONE

Page 15: Mobile Development with PhoneGap

TABLET

Page 17: Mobile Development with PhoneGap

GODADDYJust starting development on domain search app withPhoneGapAlways looking for great developers to join our [email protected]

Page 18: Mobile Development with PhoneGap

QUESTIONS?Use #phxmobi as the twitter hashtag

Download Phoenix Mobile Festival App from AppStore orGoogle Play