I need a simple solution to persistently load and update data in a mobile APP using Cordova.
I thought about creating a JSON
in the root folder of the application to load the data at APP initialization.
All right, but how to do the reverse?
For example: the script loads the JSON and plays in View > the user modifies this data in some way > the stringify()
script and stores the updated JSON back into the root folder. I think you can not do this with POST
.
I saw what you can do using localStorage
, but this way the data gets lost when you close the application.