pause

pause The pause event fires when the native platform puts the application into the background, typically when the user switches to a different application. Quick Example document.addEventListener("pause", onPause, false); function onPause() { // Handle the pause event } iOS Quirks In the pause handler, any calls to the Cordova API or to native plugins that go through Objective-C do not work, along with any interactive calls, such as alerts or console.log(). They are only processed when th

iOS Plugin Development

iOS Plugin Development Guide This section provides details for how to implement native plugin code on the iOS platform. Before reading this, see [Plugin Development Guide][plugin-dev] for an overview of the plugin's structure and its common JavaScript interface. This section continues to demonstrate the sample echo plugin that communicates from the Cordova webview to the native platform and back. An iOS plugin is implemented as an Objective-C class that extends the CDVPlugin class. For JavaScri

WP8s

WP8 Guides Windows Phone 8 Platform Guide Windows Phone 8 Plugins Upgrading Windows Phone 8

Windows Phone 8 Plugins

Windows Phone 8 Plugins This section provides details for how to implement native plugin code on the Windows Phone platform. Before reading this, see Plugin Development Guide for an overview of the plugin's structure and its common JavaScript interface. This section continues to demonstrate the sample echo plugin that communicates from the Cordova webview to the native platform and back. Writing a plugin for Cordova on Windows Phone requires a basic understanding of Cordova's architecture. Cord

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

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

Whitelist

Whitelist Guide Domain whitelisting is a security model that controls access to external domains over which your application has no control. Cordova provides a configurable security policy to define which external sites may be accessed. By default, new apps are configured to allow access to any site. Before moving your application to production, you should formulate a whitelist and allow access to specific network domains and subdomains. For Android (as of its 4.0 release), Cordova's security p

<engine>

engine Specifies details about what platform to restore during a prepare. Attributes(type) Only for platform: Description name(string) Required Name of the platform to be restored spec(string) Required Details about the platform to be restored. This could be a major.minor.patch version number, a directory containing the platform or a url pointing to a git repository. This information will be used to retrieve the platform code to restore from NPM, a local directory or a git repository. See