Using Capacitor Storage
Explore how to implement Capacitor Storage in an Ionic app to save and retrieve key-value data asynchronously. Learn to manage user favorites and stored searches by wrapping Capacitor Storage methods within custom services. Understand data conversion techniques using JSON for storing complex data types and how to integrate RxJS for efficient data handling.
We'll cover the following...
We'll cover the following...
Saving data within the application
Within this case study, we’ll be using the Capacitor Storage plugin to manage the persistence of data such as favorite movies and saved searches.
Capacitor Storage relies on the following mechanisms:
- Browser local storage for
PWAs Progressive Web Apps - The
UserDefaultson iOS - The
SharedPreferenceson Android