EuanCameron / Runtime

Runtime Q&A
5 stars 1 forks source link

Offline data expiration/cleanup #51

Closed HubLock closed 10 years ago

HubLock commented 10 years ago

When taking data offline, are all existing offline datasets checked for extent/up-to-date for reuse, and do tthe APIs provide the ability to clean old offline data sets off the device, or is that done outside the API interacting with SQLite?

willcrick commented 10 years ago

Calling syncGeodatabase() using the GeodatabaseSyncTask on an existing Geodatabase allows you to specify which tables you want to be updated. It is up to the app developer to decide wether to sync an existing Geodatabase or clean it up and generate a new one. You should ALWAYS call unregisterGeodatabase() when you no longer want to use an existing Geodatabase that was generated from the server.