Threaded View

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Vote Rating
    svendahlstrand is on a distinguished road


    Default 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.

    Use case:
    • 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
    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?


  2. 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