<preference>

preference Sets various options as pairs of name/value attributes. Each preference's name is case-insensitive. Many preferences are unique to specific platforms, and will be indicated as such. Attributes(type) Only for platform: Description AllowInlineMediaPlayback(boolean) iOS Default: false Set to true to allow HTML5 media playback to appear inline within the screen layout, using browser-supplied controls rather than native controls. For this to work, add the webkit-playsinline attribute t

<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

Next Steps

Next Steps For developers who have an understanding of how to use the Cordova CLI and make use of plugins, there are a few things you may want to consider researching next to build better, more performant Cordova applications. The following document offers advice on various topics relating to best practices, testing, upgrades, and other topics, but is not meant to be prescriptive. Consider this your launching point for your growth as a Cordova developer. Also, if you see something that can be i

menubutton

menubutton The event fires when the user presses the menu button. Applying an event handler overrides the default menu button behavior. Quick Example document.addEventListener("menubutton", onMenuKeyDown, false); function onMenuKeyDown() { // Handle the back button }

<platform>

platform When using the CLI to build applications, it is sometimes necessary to specify preferences or other elements specific to a particular platform. Use the element to specify configuration that should only appear in a single platform-specific config.xml file. Attributes(type) Only for platform: Description name(string) Required The platform whose preferences are being defined. Examples: <platform name="android"> <preference name="Fullscreen" value="true" /> </platfo

Blackberry 10s

Blackberry 10 Guides BlackBerry 10 Platform Guide BlackBerry 10 Shell Tool Guide BlackBerry 10 Configuration BlackBerry 10 Plugins Upgrading BlackBerry 10

Android Plugin Development

Android Plugin Development Guide This section provides details for how to implement native plugin code on the Android platform. Before reading this, see the 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. For another sample, see also the comments in CordovaPlugin.java. Android plugins are based on Cordova

&lt;feature&gt; &lt;param&gt;

Config.xml Config.xml is a global configuration file that controls many aspects of a cordova application's behavior. This platform-agnostic XML file is arranged based on the W3C's Packaged Web Apps (Widgets) specification, and extended to specify core Cordova API features, plugins, and platform-specific settings. For projects created with the Cordova CLI (described in The Command-Line Interface), this file can be found in the top-level directory: app/config.xml Note that before version 3.3.1-0

cordova-plugin-device-motion

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-motion This plugin provides access to the device's accelerometer. The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current device orientation, in three dimensions along the x, y, and z axis. Access is via a global navigator.accelerometer object. Al

&lt;hook&gt;

hook Represents your custom script which will be called by Cordova when certain action occurs (for example, after plugin is added or platform prepare logic is invoked). This is useful when you need to extend default Cordova functionality. See Hooks Guide for more information. Attributes(type) Only for platform: Description type(string) Required Specifies the action during which the custom script is to be called. src(string) Required Specifies the location of the script to be called when a