We have developed a hybrid mobile application using IBM worklight. In our application we have used pagination. Pagination is based on the scrolling. If the user scrolls down then the next page of data will be loaded through AJAX call. I have four tabs each having different type of data which will be opened one by one if it is swiped. Consider that I'm in the 1st tab now and navigating to the 2nd tab. If I come back to 1st tab Data will be fetched again from the server. I don't want this to happen. So I want to cache the data. Is there any way to cache data in IBM worklight ? If I cache will I be able to handle the pagination also ?
One of the features in Worklight is called JSONStore.
This feature allows you to store data locally in the device to be retrieved at any time (as well as be synced with the server and be encrypted, but those are less related here).
This way you could store related data to each of the tabs and use it when required. - JSONStore performance (search for pagination)