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 ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.