O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Storing your data offline using Sencha.io

The previous recipe is useful for any hosted application. Let us say you are using Sencha's cloud service, Sencha.io, to store your data and you want to have the data available for offline usage as well. For this purpose, Sencha.io comes with a syncstorage proxy that helps us manage the data on the cloud and also offers the offline capability for which it saves the data in localStorage. In this recipe, we will see how to set up our application to use Sencha.io APIs and use the syncstorage proxy to manage the application data.

Note

At the time of writing this book, Sencha.io was in beta and the final APIs may differ from what have been used in this chapter.

Getting ready

Make sure that you have set up your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required