resume

resume The resume event fires when the native platform pulls the application out from the background. Quick Example document.addEventListener("resume", onResume, false); function onResume() { // Handle the resume event } iOS Quirks Any interactive functions called from a pause event handler execute later when the app resumes, as signaled by the resume event. These include alerts, console.log(), and any calls from plugins or the Cordova API, which go through Objective-C. active event The

endcallbutton

endcallbutton This event fires when the user presses the end call button. The event overrides the default end call behavior. Quick Example document.addEventListener("endcallbutton", onEndCallKeyDown, false); function onEndCallKeyDown() { // Handle the end call button }

cordova build

cordova build command Synopsis Shortcut for cordova prepare + cordova compile for all/the specified platforms. Allows you to build the app for the specified platform. Syntax cordova build [<platform> [...]] [--debug|--release] [--device|--emulator] [--buildConfig=<configfile>] [--browserify] [-- <platformOpts>] Option Description <platform> [..] Platform name(s) to build. If not specified, all platforms are built. --debug Perform a debug build. This

OS X Configuration

OS X Configuration The config.xml file controls an app's basic settings that apply across each application and CordovaWebView instance. This section details preferences that only apply to OS X builds. See The config.xml File for information on global configuration options. Overview Name Default Version Comment HideMousePointer disabled 4.0.0 Sets the timeout for hiding the mouse pointer OSXLocalStoragePath ~/Library/Application Support/{bundle.id} 4.0.0 Sets the local storage path WindowSize au

Configuring VMWare Fusion

Configuring VMWare Fusion This section shows how to configure VMWare Fusion on a Mac so that you can use Cordova to generate Windows Phone applications. The Microsoft Developer Network provides general instructions for how to run Windows under VMWare Fusion. After installing Windows, follow these steps: Within VMWare Fusion, select the Windows 8 disk image you have prepared and choose Settings. Choose the Processors & Memory configuration options. Make sure to specify two processor cores, a

cordova-plugin-media-capture

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-media-capture This plugin provides access to the device's audio, image, and video capture capabilities. WARNING: Collection and use of images, video, or audio from the device's camera or microphone raises important privacy issues. Your app's privacy policy should discuss how the app uses such sensors a

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

Upgrading Windows Phone 8

Upgrading Windows Phone 8 This guide shows how to modify Windows Phone 8 projects, to upgrade from older versions of Cordova. Some 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. The following section shows how to upgrade from non-CLI and CLI projects. Upgrading 3.6.0 Projects to 4.0.0 For non-CLI projects, run: bin/update path/to/pro

cordova-plugin-device

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-device This plugin defines a global device object, which describes the device's hardware and software. Although the object is in the global scope, it is not available until after the deviceready event. document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { consol

deviceready

deviceready The deviceready event fires when Cordova is fully loaded. This event is essential to any application. It signals that Cordova's device APIs have loaded and are ready to access. Cordova consists of two code bases: native and JavaScript. While the native code loads, a custom loading image displays. However, JavaScript only loads once the DOM loads. This means the web app may potentially call a Cordova JavaScript function before the corresponding native code becomes available. The devi