Answered: Best practices to save user settings locally
Are there best practices when storing user settings locally in Sencha Touch? Example:
A simple, one user, app where the user can change some settings - like background color, text size etcetera.
So I would like to use local storage for this. Can I use the model layer with a LocalStorage proxy? The way I see it, there's only one Settings object: a singleton. How do I handle that?
- The user navigates to the settings view
- The user changes some settings in an ordinary form
- The user clicks save and the settings are persisted
Posted by mrsunshine
you can check the count of the store and work with a record with the same ID, should be only one record in the store. so if no record exist create one otherwise work with the existing one
Thread Participants: 5
Tags for this Thread