2 Feb 2014 3:54 AM #1
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
3 Feb 2014 4:07 PM #2
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:
browser/localstorage support matrix
http://www.html5rocks.com/en/features/storageGet more personalized support via a support subscription.
Want to learn Sencha Touch 2? Check out
Sencha Touch in Action
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
When posting code, please use BBCode's CODE tags.
Need to include a test case use:
The official Sencha Fiddle