See how PhoneGap (Apache Cordova), an open-source framework, and the Adobe PhoneGap Build service, part of the Adobe Creative Cloud, allow you to create cross-platform mobile apps using the web technologies you know and love: HTML, CSS, and JavaScript. Learn how PhoneGap works and how it will enable you to start building mobile apps with web standards. This talk will introduce you to the PhoneGap API and walk you through how to interact with the JavaScript methods to create interactive, feature-rich mobile applications. You will also get an introduction to PhoneGap Build which allows you to package mobile apps in the cloud.
This session will cover:
Getting started with the PhoneGap API
Interacting with the native device features (camera, video)
Accessing and using the geolocation sensors
Compiling the application using PhoneGap Build
36. Features
Accelerometer - when the device moves
Camera - pictures of your cat
Capture - audio, video, stills of your cat
Compass - for when you're lost
Connection - type of connection
Contacts - find and create new friends
37. Features
Device - device and OS version metadata
Events - various app/hardware related events
File - native file system access (+ upload)
Geolocation - for when you're lost
Globalization - date/number/currency
formatting
38. Features
Media - related to audio playback (supports
record as well)
Notification - visual, audible, and tactile
notifications
Splashscreen - for your splash screen needs
Storage - Mini database
40. Beyond the mobile web
PhoneGap is extensible with a “native plugin”
model that enables you to write your own
native logic to access via JavaScript.
There are lots of open source plugins at
https://github.com/phonegap/phonegapplugins
Learn more at
http://wiki.phonegap.com/w/page/36752779
/ PhoneGap%20Plugins
54. DESKTOP BROWSER
• Pro: Super Fast
• Pro: No setup
• Pro: Debugging Rocks
•
•
•
•
Con: UI isn't right
Con: UX isn't right
Con: Features missing
Con: Security restrictions
55. MOBILE VIA WEB
• Pro: Kinda Fast
• Pro: Minimal setup
• Pro: UI and UX testing
• Con: Features missing
• Con: Security restrictions
• Con: Debugging (kinda) sucks
56. RIPPLE EMULATOR
•
•
•
•
Pro: Fast
Pro: Similar UI
Pro: Free
Pro: Security restrictions gone
• Con: Doesn't support 100% of the PhoneGap
APIs
• Con: Still not on the device
57. TO INSTALL
• Go to the Chrome Web Store:
https://chrome.google.com/webstore/category/home
• Search for "ripple"
• Click Extensions
58.
59. LOCAL SDK TO SIMULATOR/DEVICE
• Pro: The Real Deal
• Con: Slow(ish)
• Con: Not Free
• Con: Debugging can suck
TO BE CLEAR:
YOU MUST ALWAYS TEST ON A REAL DEVICE