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

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-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

Plugin.xml

Plugin.xml Plugin.xml file defines the structure and settings required for your plugin. It has several elements to provide details about your plugin. plugin The plugin element is the plugin manifest's top-level element. Attributes(type) Only for platform: Description xmlns(string) Required The plugin namespace, http://apache.org/cordova/ns/plugins/1.0. If the document contains XML from other namespaces, such as tags to be added to the AndroidManifest.xml file in the case of Android, those na

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

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

Configuring Parallels Desktop

Configuring Parallels Desktop This section shows how to configure Parallels Desktop 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 Parallels Desktop. After installing Windows, follow these steps: Within Parallels Desktop, select the Windows 8 disk image you have prepared, and choose Settings. Choose the General → CPUs options. Specify two CPUs. Specify at least 2GB of memory,

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

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-plugin-statusbar

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-statusbar StatusBar The StatusBar object provides some functions to customize the iOS and Android StatusBar. :warning: Report issues on the Apache Cordova issue tracker Installation This installation method requires cordova 5.0+ cordova plugin add cordova-plugin-statusbar Older versions of cordova c