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" />
Bada
manifest.xml
<Privilege>
<Name>SYSTEM_SERVICE</Name>
</Privilege>
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" />
webOS
No permissions are required.
Windows Phone
No permissions are required.
Tizen
config.xml
<feature name="http://tizen.org/api/systeminfo" required="true"/>