Introduction to Apache Cordova

Sang, Le Thanh

sang@go1.com.au

Apache Cordova is a platform for building native mobile

applications using HTML, CSS and JavaScript

History

  • PhoneGap build by Nitobi 2009, MIT license

  • Adobe acquired Nitobi

    • PhoneGap became a product of Adobe

    • PhoneGap source code translated to Apache Software Foundation (ASF), license change to Apache License

  • Nitobi's team wanted another name that had a meaning to them -> rename to Cordova

  • PhoneGap still a product of Adobe. It is a distribution of Apache Cordova.

Platform Support

  • Battery Status
  • Camera
  • Console
  • Contacts
  • Devices
  • Device Motion (Accelerometer)
  • Device Orientation (Compass)
  • Dialogs
  • Geolocation
  • ...

Example

$ sudo npm install -g cordova

$ cordova create hello com.go1.hello HelloWorld

$ cd hello

# Add platforms
$ cordova platform add ios
$ cordova platform add android
$ cordova platforms ls

# Build
$ cordova build
$ cordova emulate android

References

  • http://cordova.apache.org
  • http://plugins.cordova.io
  • https://en.wikipedia.org/wiki/PhoneGap

Q&A

Introduction to Cordova

By Sang Lê Thanh

Introduction to Cordova

Building mobile application with Cordova

  • 840