Chapter 4. Using plugins to access device features

This chapter covers

  • What plugins are and what they provide for Cordova projects
  • How to find and evaluate plugins
  • How to use the CLI to manage plugins
  • How to use the deviceready event

So far you’ve concentrated on using the Cordova CLI to translate web stuff (HTML, JavaScript, and CSS) to native code. You’ve seen how to create a Cordova project and how to test it as a native application on either an emulator or a real device. The last piece of the puzzle is tapping into the rich set of device features that websites do not have access to: the filesystem, the camera, and so on. This was mentioned in chapter 3 as a problem with your simple application. This is where plugins enter the picture. ...

Get Apache Cordova in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.