O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

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

Support Storage

You saw back in Chapters 17 through 19 that we can create a Web API for storing data and accessing it with web code. The same is true for mobile applications. They can connect to your Web API (running on Azure or another cloud platform). This API can then save data to a database or some other storage mechanism. You can make further API calls to retrieve the data.

Here, however, we are going to look at storing data locally on the device. We have a couple options to do so. First, we can use HTML5 Web Storage (localStorage). Alternatively, we could use a small database that is pushed to the device, such as SQLite. We are going to work with the former approach (HTML 5 Web Storage). Of course, you might consider a hybrid approach in ...

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