Cordova Plug-Ins (for Accessing Native Device Capabilities)

Recall the Cordova plug-in layer from Figure 25.1. This layer represents native plug-ins you can use in your application that serve as a bridge between the native web view and the actual device features (such as the camera, audio, geo-location, and even the app status bar).

There are nearly 1,000 plug-ins available from the Apache Cordova Plugins Registry (plugins.cordova.io). It can be hard to sort through that many options. Thankfully, Microsoft has vetted a number of great Cordova plug-ins and has made them available right from within Visual Studio. These are plug-ins Microsoft has tested for compatibility and use.

You add a plug-in to your application from the config.xml designer. ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition 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.