This presentation will investigate how to take advantage of Web technologies (including HTML5, CSS3, and JavaScript) to build a cross-platform mobile app. The presentation will cover important steps towards optimizing a Web app for a mobile device as well as using PhoneGap to expose core device features, like the accelerometer or the camera, to an app.
17. Performance & Perception User expects immediate feedback to his/her interaction. There is a 400ms delay between user interaction and the `click` event.
18. Performance & Perception User expects immediate feedback to his/her interaction. There is a 400ms delay between user interaction and the `click` event. Use touch events.
Introduction – about me.Developer at FloatLots of experience in web developmentDegree from BradleyFollow: @mediaboundsLove coding!My beautiful fiancé
The mobile landscape as it currently stands.Review market share of different OSes.Big players—you can assume your user is on one of these devices.
“Native” language of each OS – “native” meaning the language that the SDK is written inLow percentage of reusable code – almost nil. (although you can use the same logic)Expensive to build for multiple platforms – not a great option to just build for one
Introduce PhoneGapBuild your apps in HTML/CSS/JavaScript and wrap it in PhoneGap/PhoneGap exposes core features of the device as well as a plugin structure to communicate with the native code.
Supports 6 different platformsBada is still under development—although I believe that it is available for use.Windows Mobile 7 is under development.
Common workflow for Web developers.Take comfort in knowing that all 6 of the platforms I just mentioned run on some version of WebKit.Windows Mobile 7 runs at some Frankenstein combination of IE7/IE8
Less code means less bugs.
Less time means less money
Every platform running on same code base.
Web will always be relevantNew devices will have a browserBlackBerry is notorious for burning their developers with differences in the SDK…now for PlayBook you have to develop in Flash/Adobe AIR.
Apple has set the bar on this one – when I touch the screen, something should happen immediately.
WebKit providestouchstart/touchend events.
It has less memory and less processing power
This is not a “rule”; simply some guidance…some things to look out for.
Especially true forPhoneGap apps—you’ll have to weigh the pros and cons for a mobile website.In addition to reducing the cost of a reflow, we need to reduce the number of times a reflow occurs.
CSS transitions/animations work directly on the paint layer
PhoneGap exposes some common features of the device to your mobile web app—gives you a leg up on a simple web page.