Copy data from REST API TO On-devise stoarage


The truth is that I have no idea where to start or how to do it, so any guidance will be very helpful.

I have a table that I access from a REST API and I would like to copy it to a local file to be able to work the APP offline

The external table brings me an Id, name, balance, and other fields and I want to pass some of those fields to an On-device storage

Any help on what and how the procedure would be?

I would recommend reading this blog post on how to handle offline storage

But essentially is a nutshell, you need to create an on device local storage database and app variables that exactly match your REST API Database.

When the app launches, in global canvas, your on device Database will be updated with current data from your rest api. If this database does not exist yet, it will be created. If getting current data fails, ie the device is offline; then the local database is used.