- Accelerometer
- Camera
- Capture
- Compass
- Connection
- Contacts
- Device
- Events
- File
- Geolocation
- Globalization
- InAppBrowser
- Media
- Notification
- Splashscreen
- Storage
- Getting Started Guides
- 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.
Storage
Provides access to the devices storage options.
This API is based on the W3C Web SQL [Database](database/database.html) Specification and W3C Web Storage API Specification. Some devices already provide an implementation of this spec. For those devices, the built-in support is used instead of replacing it with Cordova's implementation. For devices that don't have storage support, Cordova's implementation should be compatible with the W3C specification.
Methods
Arguments
Objects
Permissions
Android
app/res/xml/config.xml
<plugin name="Storage" value="org.apache.cordova.Storage" />
Bada
No permissions are required.
BlackBerry WebWorks
www/config.xml
<feature id="blackberry.widgetcache" required="true" version="1.0.0.0" />
iOS
No permissions are required.
webOS
No permissions are required.
Windows Phone
No permissions are required.
Tizen
No permissions are required.