- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
- Overview
- Platform Guides
- The Cordova Command-line Interface
- Command-Line Usage
- Privacy Guide
- Upgrading Guides
- Project Settings
- Plugin Development Guide
- Domain Whitelist Guide
- Embedding WebView
This version of the documentation is outdated!
Click here for the latest released version.
Events
Cordova lifecycle events.
Event Types
- deviceready
- pause
- resume
- online
- offline
- backbutton
- batterycritical
- batterylow
- batterystatus
- menubutton
- searchbutton
- startcallbutton
- endcallbutton
- volumedownbutton
- volumeupbutton
Permissions
Android
app/res/xml/config.xml
<plugin name="Battery" value="org.apache.cordova.BatteryListener" />
app/AndroidManifest.xml
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
BlackBerry WebWorks
www/plugins.xml
<plugin name="Battery" value="org.apache.cordova.battery.Battery" />
www/config.xml
<feature id="blackberry.app" required="true" version="1.0.0.0" />
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
<feature id="blackberry.system.event" required="true" version="1.0.0.0" />
iOS
config.xml
<plugin name="Battery" value="CDVBattery" />
Windows Phone
No permissions are required.
Tizen
config.xml
<feature name="http://tizen.org/api/systeminfo" required="true"/>