GitHub user smodatos added a comment to the discussion: Persistent storage

You can create a text-file in the device's Documents folder with the 
**fileWriter** of the **Cordova File Plugin** (don't forget to delete an 
eventually existing file with the same name before - fileEntry.remove is your 
friend ...).

>From the Documents folder you (and everybody else) can read later this file 
>with the **fileReader** of the **Cordova File Plugin.**

Notes: 
- Don't store sensible data there (everybody could read them)
- Encrypt data before writing (for the case that someone else reads your file)
- Don't mess up the user's Documents folder with thousands of files which even 
you don't remember that they exist

As an **alternative** the so far free **Cordova Cloud Settings Plugin** might 
serve.
But as for it stays in the 'cloud', if the 'cloud-owner' (Android's Data Backup 
service or iCloud for iOS), some day decides to change politics, this might 
affect you.



GitHub link: 
https://github.com/apache/cordova/discussions/497#discussioncomment-11204756

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to