Chapter 1. Getting Started with PhoneGap

PhoneGap is an application framework that enables you to build native applications using HTML and JavaScript. Think of PhoneGap as a web view container that is 100% width and 100% height, with a JavaScript programming interface that allows you to access operating system features. The main issue developers used to face with Apache Cordova/PhoneGap was the setup of the development environment and the dependencies with other IDEs. Since version 2.x, however, things have changed dramatically and now the setup is pretty straightforward. This chapter covers setting up your development environment.

In this chapter we will:

  • Get an overview of the history of Apache Cordova/PhoneGap
  • Learn how to configure your development environment configuring all the dependencies
  • Learn how to create a new project using Eclipse, Xcode, and Visual Studio
  • Learn how to create a common code base without using the CLI (Command Line Interface) tool released with the version 2.0

PhoneGap and Apache Cordova

PhoneGap was originally developed by Nitobi, a company acquired by Adobe in 2011. After it was acquired, Nitobi donated the PhoneGap code base to the Apache Software Foundation (ASF) under the project name Cordova, which is the name of the street in Vancouver where Nitobi's offices were located and where the company created the first version of the framework.

One of biggest advantages of moving the code base to the ASF is that big organizations can easily contribute to the project (many companies are not only comfortable with the Apache organization and license, but already have a Contributor License Agreement with Apache); furthermore, the project is now under an open and transparent governance: its community!

PhoneGap is a free and open licensed distribution of Apache Cordova. Picture Cordova to be the engine upon which PhoneGap and its related services (debug, emulate and build services) are built. For existing PhoneGap developers nothing has changed; but for those who are interested in contributing to the project, Apache Cordova is a great chance to join a vibrant open source community.

Adobe continues to play a major role in the project, investing in its ongoing development, and the company decided to keep the PhoneGap name to describe its own distribution of the Cordova project. Other contributors to the Apache Cordova project includes Google, RIM, Microsoft, IBM, Nokia, Intel, and Hewlett-Packard.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.90.44