1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    407
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Default LocalStorage question

    LocalStorage question


    Hi;
    LocalStorage docs state the following:
    "If this proxy is used in a browser where local storage is not supported, the constructor will throw an error"
    what is the best way to deal with this?
    should I use Ext.feature.has.LocalStorage to check first? does Ext.feature.has.LocalStorage relates to Ext.data.proxy.LocalStorage?
    assuming I intend to use IOS and android only as browsers to this application. is there a browser version matrix where I can find from which version local storage is supported? for example (android 2.2+ and ios4+)
    thanks in advance

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,978
    Vote Rating
    132
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Checking he source I see that that error is only thrown in development mode to the console.
    You could create your own function to check as suggested in the following post:
    http://stackoverflow.com/questions/1...-local-storage

    browser/localstorage support matrix
    http://www.html5rocks.com/en/features/storage
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Tags for this Thread