Article

Mobile app. Synchronization of actual data (IsAdministratedByRights)

Question

The user creates a visit in the mobile application and syncs. Then removes a visit to the web version of the app.

The user is synchronized in the mobile application, visits are not deleted. User clears the cache - visits are deleted.

Is it possible to synchronize (to delete the records already deleted in the web version) without clearing the cache?

Answer

The mobile application does not implement the termination of deleted records in the desktop application. This is explained by the fact that no logging is performed by default on the server; accordingly, the mobile application does not know that the termination has occurred.

If you want to terminate the records, then you need to enable an additional option in the manifest for the necessary models (for example, the Activity model):

{
   "SyncOptions": {
      "ModelDataImportConfig": [
         {
            "Name": "Activity",
            "IsAdministratedByRights": true
         }
      ]
   }
}

This option adds an additional step to the synchronization, in which the sample of data from the server is selected and compared with the sample of the data in the mobile application.

All "extra" records will be deleted, and the synchronization time might increase (depending on the number of records).

Like 0

Like

Share

0 comments
Show all comments