Upgrading Android

Upgrading Android This guide shows how to modify Android projects to upgrade from older versions of Cordova. Most of these instructions apply to projects created with an older set of command-line tools that precede the cordova CLI utility. See The Command-Line Interface for information how to update the version of the CLI. Upgrading to 5.X.X The best way to upgrade to 5.X.X is to simply remove the Android platform from your project and re-add it with the new version. For example, cordova platfo

OS X Plugins

OS X Plugins This section is not written yet. Please refer to the iOS Plugin Guide that has many similarities to OS X.

cordova-plugin-network-information

This documentation describes this plugin at version master. Other versions are on GitHub. Android iOS Windows 8.1 Store Windows 8.1 Phone Windows 10 Store Travis CI cordova-plugin-network-information This plugin provides an implementation of an old version of the Network Information API. It provides information about the device's cellular and wifi connection, and whether the device has an internet connection. To get a few ideas how to use the plugin, check out the sample at the

cordova-plugin-console

This documentation describes this plugin at version master. Other versions are on GitHub. Android iOS Windows 8.1 Store Windows 8.1 Phone Windows 10 Store Travis CI cordova-plugin-console This plugin is meant to ensure that console.log() is as useful as it can be. It adds additional function for iOS, Ubuntu, Windows Phone 8, and Windows. If you are happy with how console.log() works for you, then you probably don't need this plugin. This plugin defines a global console object. A

activated

activated The event fires when Windows Runtime activation has occurred. See MSDN docs for further details and activation types. Quick Example document.addEventListener("activated", activated, false); function activated(args) { if (args && args.kind === Windows.ApplicationModel.Activation.ActivationKind.file) { // Using args.raw to get the native StorageFile object Windows.Storage.FileIO.readTextAsync(args.raw.detail[0].files[0]).done(function (text) { con

Android WebViews

Android WebViews This guide shows how to embed a Cordova-enabled WebView component within a larger Android application. For details on how these components can communicate with each other, see Application Plugins. If you're unfamiliar with Android, you should first familiarize yourself with the Android Platform Guide and have the latest Android SDK installed before you attempt the more unusual development option of embedding a WebView. Starting with Cordova 1.9, the Android platform relies on a

cordova-plugin-vibration

This documentation describes this plugin at version master. Other versions are on GitHub. Android iOS Windows 8.1 Store Windows 8.1 Phone Windows 10 Store Travis CI cordova-plugin-vibration This plugin aligns with the W3C vibration specification http://www.w3.org/TR/vibration/ This plugin provides a way to vibrate the device. This plugin defines global objects including navigator.vibrate. Although in the global scope, they are not available until after the deviceready event. doc

cordova run

cordova run command Synopsis Prepares, builds, and deploys app on specified platform devices/emulators. If a device is connected it will be used, unless an eligible emulator is already running. Syntax cordova run [<platform> [...]] [--list | --debug | --release] [--noprepare] [--nobuild] [--device|--emulator|--target=<targetName>] [--buildConfig=<configfile>] [--browserify] [-- <platformOpts>] Option Description <platform> [..] Platform nam

cordova create

cordova create command Synopsis Create the directory structure for the Cordova project in the specified path. Syntax cordova create path [id [name [config]]] [options] Value Description path Directory which should not already exist. Cordova will create this directory. For more details on the directory structure, see below. id Default: io.cordova.hellocordova Reverse domain-style identifier that maps to id attribute of widget element in config.xml. This can be changed but there may be code ge

Cordova App Templates

Cordova App Templates Use a Template Templates allow you to use preexisting code to jumpstart your project. Find a template to create your app from by seaching for the keyword cordova:template on npm. You can also use local templates on your computer, or a Git repository. After locating a template you wish to use. Create your project using that template, by specifying the --template flag during the create command, followed by your template source. Creating a cordova project from an NPM packag