Results 1 to 10 of 13

Thread: Best practices to save user settings locally

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Vote Rating

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts