Windows Phone 8.0 WebViews

Windows Phone 8.0 WebViews This guide shows how to embed a Cordova-enabled WebView component within a larger Windows Phone 8.0 application. To follow these instructions, make sure you have the latest Cordova distribution. Download it from cordova.apache.org and unzip its Windows Phone 8.0 package (cordova-wp8-*.zip). Navigate to the package's wp8/framework directory and build WPCordovaClassLib.sln. It creates the Bin\Debug[Release]\WPCordovaClassLib.dll. Copy the WPCordovaClassLib.dll file int

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

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

<feature>

feature If you use the CLI to build applications, you use the plugin command to enable device APIs. This does not modify the top-level config.xml file, so the element does not apply to your workflow. If you work directly in an SDK and using the platform-specific config.xml file as source, you use the tag to enable device-level APIs and external plugins. They often appear with custom values in platform-specific config.xml files. See the API Reference for details on how to specify each feature.

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

cordova telemetry

cordova telemetry command Synopsis Turns telemetry collection on or off. Syntax cordova telemetry [STATE] Option Description on Turn telemetry collection on. off Turn telemetry collection off. Details A timed prompt asking the user to opt-in or out is displayed the first time cordova is run. It lasts for 30 seconds, after which the user is automatically opted-out if he doesn't provide any answer. In CI environments, the CI environment variable can be set, which will prevent the prompt from s

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

<access>

access Defines the set of external domains the app is allowed to communicate with. The default value shown above allows it to access any server. See the Domain Whitelist Guide for details. Attributes(type) Only for platform: Description origin(string) Required Defines the set of external domains the app is allowed to communicate with. The default value shown above allows it to access any server. See the Domain Whitelist Guide for details. Examples: <widget ...> <access origin="

cordova-plugin-whitelist

cordova-plugin-whitelist This documentation describes this plugin at version master. Other versions are on GitHub. This plugin implements a whitelist policy for navigating the application webview on Cordova 4.0 :warning: Report issues on the Apache Cordova issue tracker Installation You can install whitelist plugin with Cordova CLI, from npm: $ cordova plugin add cordova-plugin-whitelist $ cordova prepare Supported Cordova Platforms Android 4.0.0 or above Navigation Whitelist Contro

cordova-plugin-legacy-whitelist

cordova-plugin-legacy-whitelist This documentation describes this plugin at version master. Other versions are on GitHub. This plugin implements the Cordova 3.6 Whitelist policy for Cordova 4.0. Please use cordova-plugin-whitelist instead, as it's more secure. Supported on: cordova-android@4.0.0 cordova-ios@4.0.0 Usage: Use <access> tags, just as in previous versions of Cordova.