Chapter 11: Local Storage and Data Synchronization
When we talk about the concept of "mobile," we must always consider particular aspects of the devices used – things such as processing power, passive safety, and a very common case: offline operation.
We often find ourselves without network connectivity on our devices, either because we don't have a Wi-Fi network within our reach or because the network signal does not allow us to take advantage of data packets.
For that, there is an interesting concept in mobile development, Local Storage since we can have the necessary data for our applications to run on our device without needing an internet connection to obtain it. Of course, in most cases synchronization will be necessary later to keep the data up to date, both on our device and on the database server.
In this chapter, we will learn how Local Storage works, how to use it, and how to synchronize our data from Local Storage with existing data on the...