1. Developing with
Phonegap
Building mobile applications with HTML/JS
2. Ryan Stewart
Web Developer Advocate, Adobe
ryan@adobe.com
blog.digitalbackcountry.com
@ryanstewart
github.com/ryanstewart
Based in Seattle
Things I Like:
Beer
Mountaineering/Hiking/Backpacking
Geolocation/Mapping stuff
11. Your Code
Native Web View
Native APIs
Native App - .apk, .ipa, etc
12. PhoneGap uses the native browser
on the device to render the HTML/
CSS/JS
Keep in mind that can affect the
experience. It also keeps apps nice
and small
13. PhoneGap uses the
native project
format for each
platform.
Open, emulate,
and test from
within the native
development
environment!
25. - Accelerometer
- Camera
- Capture
Out of the box, - Compass
- Connection
PhoneGap - Contacts
- Device
provides support - Events
for a number of -
-
File
Geolocation
basic device APIs -
-
Media
Network
- Notification
- Storage
32. Weinre is built with
node.JS and acts as
a server and uses
the developer tools
from Chrome to
provide hooks into
the mobile app.
33. Drop in a <script>
tag on a remote
server and Weinre
will let you use the
Developer Tools on
your apps.
Requires internet
access, so keep
that in mind.
34. But, a much easier way:
http://debug.phonegap.com/
37. For added
functionality
PhoneGap provides
a plug-in
mechanism.
Includes OS-
specific code/
libraries and the JS
to use it in
PhoneGap
Some of the
helpful ones:
PayPal, Facebook,
Push Notification
38. Plug-is are one of
the areas that
show off the power
of a hybrid web/
native approach.
There are a ton of
native-centric
SDKs (like
Facebook) that
provide a great
native experience.
We can use those!