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

Privacy

Privacy Guide Mobile privacy is a critical issue that every app developer must address. Your users expect that their private information will be collected and treated appropriately by your app. Also, there are an increasing number of jurisdictions that now have legal requirements regarding mobile privacy practices. This guide on mobile app privacy should be considered a primer addressing some the most significant issues. It outlines some broadly accepted best practices and provides references t

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

Plugin Development

Plugin Development Guide A plugin is a package of injected code that allows the Cordova webview within which the app renders to communicate with the native platform on which it runs. Plugins provide access to device and platform functionality that is ordinarily unavailable to web-based apps. All the main Cordova API features are implemented as plugins, and many others are available that enable features such as bar code scanners, NFC communication, or to tailor calendar interfaces. You can searc

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

Platform Support

Platform Support The following shows the set of development tools and device APIs available for each mobile platform. The device APIs listed here are provided by the core plugins, additional APIs are available via third-party plugins. Column headers display the CLI's shorthand names. android blackberry10 ios Ubuntu wp8(Windows Phone 8) windows(8.1, 10,Phone 8.1) OS X cordovaCLI Mac, Windows, Linux Mac, Windows, Linux Mac Ubuntu Windows Mac EmbeddedWebView (see details) (see details) Pl

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

OS X Plugins

OS X Plugins This section is not written yet. Please refer to the iOS Plugin Guide that has many similarities to OS X.

OS X Platform

OS X Platform Guide This guide shows how to set up your SDK development environment to deploy Cordova apps for OS X computers. See the following for more detailed platform-specific information: OS X Configuration OS X Plugins The command-line tools above refer to versions prior to Cordova 3.0. See The Command-Line Interface for information about the current interface. Requirements and Support AppleĀ® tools required to build OS X applications run only on the OS X operating system on Intel-based

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