Question
How to disable the background synchronization which starts when the application is minimized?
Answer
Create a schema with the "Module" type (for example, "MobileUtilitiesCustom") and write the following code in it:
Terrasoft.Sync.BackgroundSyncManager.setMode(Terrasoft.BackgroundSyncModes.Never);
In the manifest of the mobile application (for example, "MobileApplicationManifestDefaultWorkplace"), specify this custom schema:
{
...
"CustomSchemas": [
...
"MobileUtilitiesCustom"
]
...
}
The mobile application also has background synchronization according to the schedule, it is disabled by changing the MobileDataSyncFrequency system setting value to 0.
These two options for starting synchronization work only when the RunMobileSyncInService system setting is enabled.