backbutton

backbutton The event fires when the user presses the back button. To override the default back-button behavior, register an event listener for the backbutton event. It is no longer necessary to call any other method to override the back-button behavior. Quick Example document.addEventListener("backbutton", onBackKeyDown, false); function onBackKeyDown() { // Handle the back button } Windows Quirks Throw an error in a backbutton callback to force the default behavior, which is an app exit:

Platforms and Plugins Version Management

Platforms and Plugins Version Management From version 4.3.0 onwards, Cordova provides the ability to save and restore platforms and plugins. This feature allows developers to save and restore their app to a known state without having to check in all of the platform and plugin source code. The 'save' command stores details about the app's platform and plugin versions in config.xml. The 'restore' step happens automatically when a 'cordova prepare' is issued, making use of information previously s

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

Upgrading Windows

Upgrading Windows For upgrading from windows version 4.0.0 or higher, run cordova platform update windows. For projects not created with the cordova CLI, run: bin\update <project_path> Upgrading Windows 8 This is for people still using windows8 platform to upgrade from older versions of Cordova. Most 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

Android WebViews

Android WebViews This guide shows how to embed a Cordova-enabled WebView component within a larger Android application. For details on how these components can communicate with each other, see Application Plugins. If you're unfamiliar with Android, you should first familiarize yourself with the Android Platform Guide and have the latest Android SDK installed before you attempt the more unusual development option of embedding a WebView. Starting with Cordova 1.9, the Android platform relies on a

&lt;access&gt;

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 prepare

cordova prepare command Synopsis Transforms config.xml metadata to platform-specific manifest files, copies icons & splashscreens, copies plugin files for specified platforms so that the project is ready to build with each native SDK. Syntax cordova prepare [<platform> [..]] [--browserify | --fetch] Options Option Description <platform> [..] Platform name(s) to prepare. If not specified, all platforms are built. --browserify Compile plugin JS at build time using browserify

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

cordova-plugin-inappbrowser

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-inappbrowser You can show helpful articles, videos, and web resources inside of your app. Users can view web pages without leaving your app. To get a few ideas, check out the sample at the bottom of this page or go straight to the reference content. This plugin provides a web browser view that displa

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