Default records in local storage (on mobile)

I want to create a local table with some default records. It is local only; so I don't want it to get synced to the server. So I added a table with some records, but the records aren't loaded into the local storage. How should I do this?

Solution

Hi Michael, you can populate your local storage in the OfflineDataSync action. Don't forget to update OfflineDataSyncConfiguration to trigger when some event occurs like SyncOnLogin. You also need to check if your local storage entity is already populated, in this scenario just ignore the population logic. 


Regards,

Roman

Solution