searchbutton

searchbutton The event fires when the user presses the search button on Android. If you need to override the default search button behavior on Android you can register an event listener for the 'searchbutton' event. Quick Example document.addEventListener("searchbutton", onSearchKeyDown, false); function onSearchKeyDown() { // Handle the search button }

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

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

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

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

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

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