When my application stores data locally on the phone, how permanent is this storage? I will clarify the exact situation:
I am building an application with jQueryMobile and Phonegap. This is essentially a browser app, but using Phonegap allows me to pack and sell it in app stores, among other benefits.
Phonegap offers two storage methods, both of which harmonize the native functions of iOs, Android, Blackberry and some other OSs: localStorage (these are primitive key-value pairs) and a Web SQL database. Both localStorage and web SQL are browser-owned storage forms. Having said that, I canโt find out how long the data will be stored, under what circumstances it will be deleted, under what circumstances it may be unavailable, etc.
For example, if an application stores data with localStorage or web SQL, and the user switches to another standard browser on their Android, the application will open with a new browser and does this mean that the stored data is not available?
If the user does not use the application for a year (which in my case is a realistic and not necessarily a bad scenario), will the data expire like cookies, or could a flood of data from other applications be pushed out of the browser storage?
Or the data will be destroyed even earlier, for example, when: - the user visits another site in the browser - the browser is closed manually - the browser process is killed or dies - etc
Or localStorage and web SQL - the kind of storage that you delete only when (in Android) you go to "Settings"> "Applications" and actively delete user data associated with the application?
Thanks for any ideas. There is nothing informative on ol 'www.
What happens if the application is updated. Will local and web storage be deleted or will it remain?
local-storage cordova web-sql
Wytze Oct 13 2018-11-11T00: 00Z
source share