Skip to main content

Secure Storage - Web Support

Ionic Secure Storage provides a powerful SQLite-backed data store, but SQLite is not available in a standard browser environment, so apps that must run on iOS, Android, and the web, have to take a slightly different approach to enable web support.

In this case, web support is provided by the KeyValueStorage class which provides a generic storage API that works across multiple platforms, abstracting away storage engine details and providing a simple API with low overhead.

One trade-off is this requires apps to use a key/value data storage architecture instead of a SQL based relational data storage architecture for cross-platform support, which is an acceptable compromise for many apps. Optionally, apps may elect to use the SQL engine when running natively on iOS and Android, but fall back to using the key/value API when running on the web.

Installation and Usage‚Äč

View instructions on the Key/Value page.