InterviewSolution
| 1. |
In an Ionic application, how will you save data so that it could be retrieved subsequently on the next release? |
|
Answer» The @ionic/storage PACKAGE in the ionic framework has a storage module. We MAY use the storage module to hold key-value pairs and JSON objects in a safe and reliable manner. It has its own SET of constraints. Storage engines come in a variety of flavours, and which ONE is ideal for you depends on the platform you're using. When executing in a native application context, SQLite is used for storage. Storage will use IndexedDB, WebSQL, and localstorage while operating on the web or as a Progressive Web App. The SQLite file-based database is the most stable and widely used, avoiding the drawbacks of alternative storage engines such as IndexedDB, WebSQL, and localstorage. |
|