PhoneGap: Beginner's Guide - Third Edition

Create, develop, debug, and deploy your very own mobile applications with PhoneGap
Preview in Mapt
Code Files

PhoneGap: Beginner's Guide - Third Edition

Purusothaman Ramanujam, Giorgio Natili

Create, develop, debug, and deploy your very own mobile applications with PhoneGap
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


PhoneGap: Beginner's Guide - Third Edition Book Cover
PhoneGap: Beginner's Guide - Third Edition
$ 35.99
$ 25.20
Unity 2017 Game Development Essentials - Third Edition Book Cover
Unity 2017 Game Development Essentials - Third Edition
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781784392284
Paperback284 pages

Book Description

Given the increase in usage of mobile devices, mobile app development is in huge demand. This book provides you with the skills you need to successfully create, develop, debug, and deploy a cross-platform mobile application with PhoneGap 5. The book starts with the basics of PhoneGap, covering setting up your development environment, creating a simple project, and debugging and deploying it to your mobile devices. By sequentially working through the sections in each chapter, you will quickly get to know about the available features of various mobile frameworks and the various PhoneGap plugins you can utilize to create your apps. You will then learn how to build a hybrid application using PhoneGap. Finally, by the end of the book, you will be able to implement the most common features of modern mobile apps and build rich, native-style applications.

Table of Contents

Chapter 1: Introduction to PhoneGap
About PhoneGap
PhoneGap and Apache Cordova
Choosing an operating system for development
Mobile web versus mobile app
Installing dependencies
Installing PhoneGap
Setting up your development environment
Time for action – setting up Android using PhoneGap 3.x
Getting started with Android and JBoss
Time for action – using JBoss Developer Studio
Getting started with iOS and Xcode
Getting started with Windows Phone and Visual Studio
Summary
Chapter 2: Building Your First PhoneGap Project
The structure of a PhoneGap application
Using the PhoneGap CLI
Cordova events
Time for action – the Hello World example
WebKit debugging – Chrome, Safari, and Opera
Gecko debugging – Firefox
Internet Explorer
Debugging workflow
Building and deployment
Summary
Chapter 3: Mobile Frameworks
Building native UI for the mobile
Achieving a native look and feel on iOS
Choosing mobile frameworks
Time for action – developing with jQuery Mobile
Selecting a framework
Summary
Chapter 4: Working with Plugins
An introduction to plugins
Exploring the Device API
Time for action – accessing the Device API
Custom plugins
Summary
Chapter 5: Using Device Storage and the Files API
Application data storage
Time for action – reading and writing data on the LocalStorage
Time for action – populating a local database
Database limitations
Understanding the Files API
Time for action – listing folders
Time for action – reading and rendering an image
Time for action – downloading and saving a file
Summary
Chapter 6: Using the Contacts and Camera APIs
The Contacts API
Time for action – searching device contacts
Time for action – adding a new contact
Camera API or Capture API?
Accessing the camera using the Camera API
Time for action – accessing the device camera
Time for action – controlling the position of the camera roll
The Media Capture API
Time for action – manipulating images with a canvas
Summary
Chapter 7: Accessing the Device Sensors and Locations API
Introducing device sensors
Accelerometer
Time for action – handling device orientation with JavaScript
Compass
Time for action – using the Compass API
An introduction to geolocation
The PhoneGap Geolocation API
Time for action – showing device position with Google Maps
Summary
Chapter 8: Advanced PhoneGap
Using the Globalization API
Localizing your app
Time for action – rendering localized messages
Adding multitouch gesture support
Time for action – implementing gesture support
Handling click delays
Summary
Chapter 9: Getting Ready for Release
Exploring JavaScript compression
Time for action – compressing files using the Closure Compiler
Time for action – using UglifyJS
Time for action – optimizing JavaScript with RequireJS
Comparing compression tools
Using template engine compression
Time for action – compiling a template using Pistachio
Creating fluid, multiple app views
Using hardware-accelerated transitions
Porting web applications
Summary
Chapter 10: A Sample PhoneGap Project
What's in the app?
Creating the project
Scope for improvements
Summary

What You Will Learn

  • Get acquainted with the fundamentals of PhoneGap
  • Use HTML, CSS, and JavaScript to create, debug, and deploy your own mobile applications
  • Work with mobile-specific frameworks such as iOS and Android to design your applications
  • Install and work with all PhoneGap/Cordova plugins
  • Implement device-oriented APIs related to contacts, files, the camera, and geolocations
  • Use PhoneGap/Cordova events for accessibility
  • Enhance and optimize your application for real-time environments

Authors

Table of Contents

Chapter 1: Introduction to PhoneGap
About PhoneGap
PhoneGap and Apache Cordova
Choosing an operating system for development
Mobile web versus mobile app
Installing dependencies
Installing PhoneGap
Setting up your development environment
Time for action – setting up Android using PhoneGap 3.x
Getting started with Android and JBoss
Time for action – using JBoss Developer Studio
Getting started with iOS and Xcode
Getting started with Windows Phone and Visual Studio
Summary
Chapter 2: Building Your First PhoneGap Project
The structure of a PhoneGap application
Using the PhoneGap CLI
Cordova events
Time for action – the Hello World example
WebKit debugging – Chrome, Safari, and Opera
Gecko debugging – Firefox
Internet Explorer
Debugging workflow
Building and deployment
Summary
Chapter 3: Mobile Frameworks
Building native UI for the mobile
Achieving a native look and feel on iOS
Choosing mobile frameworks
Time for action – developing with jQuery Mobile
Selecting a framework
Summary
Chapter 4: Working with Plugins
An introduction to plugins
Exploring the Device API
Time for action – accessing the Device API
Custom plugins
Summary
Chapter 5: Using Device Storage and the Files API
Application data storage
Time for action – reading and writing data on the LocalStorage
Time for action – populating a local database
Database limitations
Understanding the Files API
Time for action – listing folders
Time for action – reading and rendering an image
Time for action – downloading and saving a file
Summary
Chapter 6: Using the Contacts and Camera APIs
The Contacts API
Time for action – searching device contacts
Time for action – adding a new contact
Camera API or Capture API?
Accessing the camera using the Camera API
Time for action – accessing the device camera
Time for action – controlling the position of the camera roll
The Media Capture API
Time for action – manipulating images with a canvas
Summary
Chapter 7: Accessing the Device Sensors and Locations API
Introducing device sensors
Accelerometer
Time for action – handling device orientation with JavaScript
Compass
Time for action – using the Compass API
An introduction to geolocation
The PhoneGap Geolocation API
Time for action – showing device position with Google Maps
Summary
Chapter 8: Advanced PhoneGap
Using the Globalization API
Localizing your app
Time for action – rendering localized messages
Adding multitouch gesture support
Time for action – implementing gesture support
Handling click delays
Summary
Chapter 9: Getting Ready for Release
Exploring JavaScript compression
Time for action – compressing files using the Closure Compiler
Time for action – using UglifyJS
Time for action – optimizing JavaScript with RequireJS
Comparing compression tools
Using template engine compression
Time for action – compiling a template using Pistachio
Creating fluid, multiple app views
Using hardware-accelerated transitions
Porting web applications
Summary
Chapter 10: A Sample PhoneGap Project
What's in the app?
Creating the project
Scope for improvements
Summary

Book Details

ISBN 139781784392284
Paperback284 pages
Read More

Read More Reviews

Recommended for You

PhoneGap By Example Book Cover
PhoneGap By Example
$ 35.99
$ 25.20
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Ionic Framework By Example Book Cover
Ionic Framework By Example
$ 23.99
$ 2.40
Object-Oriented JavaScript - Third Edition Book Cover
Object-Oriented JavaScript - Third Edition
$ 35.99
$ 25.20
Responsive Web Design with HTML5 and CSS3 - Second Edition Book Cover
Responsive Web Design with HTML5 and CSS3 - Second Edition
$ 31.99
$ 22.40
Internet of Things with ESP8266 Book Cover
Internet of Things with ESP8266
$ 31.99
$ 22.40